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
  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)
0
mouse.KeyDown is deprecated, use UserInputService Leamir 3138 — 4y
0
thanks VAnkata20 135 — 4y

Answer this question