Advertisement
Guest User

Thing

a guest
Jan 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local debounce = true
  2. local player = script.Parent.Parent.Parent.Parent
  3. local target = game.Workspace:WaitForChild("StartSpawn")
  4.  
  5. script.Parent.MouseButton1Click:connect(function()
  6. if debounce == true then
  7. debounce=false
  8. player.Character.HumanoidRootPart.CFrame=target.CFrame*CFrame.new(0,3,0)
  9. for i = 5,1,-1 do
  10. wait(1)
  11. script.Parent.Text=i
  12. end
  13. wait(1)
  14. script.Parent.Text="Teleport to StartSpawn"
  15. debounce=true
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement