#help on this script

5 messages · Page 1 of 1 (latest)

uneven herald
#

im trying to do that when you use the tool, the tools dissapear from your inv, but then they appear (the unequip one works but the quip one doesnt)

#

local RS = game:GetService("ReplicatedStorage")
local p = game.Players.LocalPlayer
repeat wait() until p.Character
local Cooldown = 5
local db = true

script.Parent.Activated:Connect(function()
local p = game.Players.LocalPlayer
local char = p.Character
if db == true and char.Debounce.Value == true and game.Workspace.DomainValue.Value == false and p.Character.Air.Value == false then
db = false
RS.Events["UnlimitedVoid0.2"]:FireServer()

    while true do
        task.wait()
        local function unequipTool()
            if p then
                p:UnequipTools()
            end
        end
        game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
        unequipTool()
    end
    
    task.wait(Cooldown)
    
    db = true
    
    while true do
        task.wait()
        local function equipTool()
            if p then
                p:equipTool()
            end
        end
        game:GetService('StarterGui'):SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
        equipTool()
    end
end

end)

#

oh wait i just fixed it

simple mortar
topaz sparrowBOT
#

studio** You are now Level 13! **studio