Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

i am trying to make something like a cooldown but in a gui and it dosent work?

Asked by
VAnkata20 135
4 years ago
Edited 4 years ago
01  repeat wait() until game.Players.LocalPlayer
02  local player = script.Parent.Parent
03  local mouse = player:GetMouse()
04 
05  mouse.KeyDown:connect(function(key)
06    if key == 32 then
07    script.Parent.Parent.Text = ("3")
08    wait(1)
09    script.Parent.Parent.Text = ("2")
10    wait(1)
11    script.Parent.Parent.Text = ("1")
12    wait(1)
13    script.Parent.Parent.Text = ("Space")
14 
15end
16   end)
0
mouse.KeyDown is deprecated, use UserInputService Leamir 3138 — 4y
0
thanks VAnkata20 135 — 4y

Answer this question