local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
game.Players.LocalPlayer.PlayerGui:WaitForChild("TestGui")
local text = game.Players.LocalPlayer.PlayerGui.TestGui.TextBox
mouse.KeyDown:connect(function(key)
if key == "e" then
print("Part Loaded")
local newPart = Instance.new("Part",game.Workspace)
newPart.BrickColor = BrickColor.new("Storm blue")
text.Visible = true
wait(1)
text.Visible = false
end
end)
COMMUNITY QUESTION
How do i add an cooldown to this script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
https://developer.roblox.com/en-us/articles/Debounce
I tried that @AnotherPerson_999 but it didn't work