How to make cooldown for tool equip? I mean, I can't interact with him in any way at all for a while, not even to equip
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.

2 comments
Take a look at this: https://developer.roblox.com/en-us/api-reference/function/Humanoid/UnequipTools
Thanks