I am not good at all at scripting and really need to know how to make cool downs. How do you make a cooldown for this?
Code:
local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
game.ReplicatedStorage.TimeStop:FireServer()
end
end)

6 comments
For some reason this didn't work. Is there another way? I did the same thing you did and looked over it.
Try increasing the wait() to 10.
Still doesn't work.
Between lines 3 and 4 in the above code you need to add the condition 'if OnCooldown == false then', and put the end for the if statement between lines 7 and 8
Fixed, try now. Thank you vector3_zero.
Thanks it worked.