Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debounce = true
- local player = script.Parent.Parent.Parent.Parent
- local target = game.Workspace:WaitForChild("StartSpawn")
- script.Parent.MouseButton1Click:connect(function()
- if debounce == true then
- debounce=false
- player.Character.HumanoidRootPart.CFrame=target.CFrame*CFrame.new(0,3,0)
- for i = 5,1,-1 do
- wait(1)
- script.Parent.Text=i
- end
- wait(1)
- script.Parent.Text="Teleport to StartSpawn"
- debounce=true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement