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)

2 comments

0

mouse.KeyDown is deprecated, use UserInputService

0

thanks