Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Cooldown for tool equip?

1 answer

There's a cooldown for tool equip, if the player equips the tool, it will automatically unequip after 1 second then they aren't able to use tool for 5 seconds.

local disableTools = character.ChildAdded:Connect(function(child)    
if child:IsA(“Tool”) then
       wait(1)
       humanoid:UnequipTools()
       game.StarterGui:SetCoreGuiEnabled(2,false)
       wait(5)
       enableTools()
    end
end)

local function enableTools()
    disableTools:Disconnect()
    game.StarterGui:SetCoreGuiEnabled(2,true)
end

This discussion is preserved as it was. New answers, comments, and votes are closed.