repeat wait() until game.Players.LocalPlayer
local player = script.Parent.Parent
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
if key == 32 then
script.Parent.Parent.Text = ("3")
wait(1)
script.Parent.Parent.Text = ("2")
wait(1)
script.Parent.Parent.Text = ("1")
wait(1)
script.Parent.Parent.Text = ("Space")
end
end)
COMMUNITY QUESTION
i am trying to make something like a cooldown but in a gui and it dosent work?
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
mouse.KeyDown is deprecated, use UserInputService
thanks