local plr = game:GetService("Players").LocalPlayer
local char = plr.Character
local button = script.Parent.ScreenGui.TextButton
local time = 5
local debounce = false

button.MouseButton1Click:Connect(function()
     if debounce then
          debounce = true
     end
     char.HumanoidRootPart.CFrame = CFrame.new(-86.584, 3, -3.019)
     while wait(1) do
     if time == 0 then
                 button.Text = "Start!"
          wait()
     else
          button.Text = tostring(time)
          time = time - 1
             debounce = false
         end
     end
end)

3 comments

0

I'm sorry, I'm looking over your code and can't really understand what you're trying to achieve. Could you please explain what this is suppose to do?

0

if you can't understand it yourself then you can't really help max

0

This isn't the case, I can't help if I don't know what he's trying to achieve.