Advertisement
Stick09

Obby LeaderBoard

Sep 10th, 2019
1,498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. --StickMasterLock0909
  2. --Take the brick provided and rename it to the stage number to make people spawn there.
  3. function oa(object)
  4. local player = game.Players:playerFromCharacter(object)
  5. if player ~= nil then
  6. local ls = player.leaderstats
  7. local sl = game.Workspace:FindFirstChild(ls.Stage.Value)
  8. print("gah")
  9. object.Torso.CFrame = object.Torso.CFrame + Vector3.new(0,3,0)
  10. wait()
  11. object.Torso.CFrame = sl.CFrame + Vector3.new(0,3,0)
  12. end end
  13.  
  14. function oe(object)
  15. if object.className == "Player" then
  16. local ack = Instance.new("IntValue")
  17. ack.Name = "leaderstats"
  18. local ack2 = Instance.new("IntValue")
  19. ack2.Name = "Stage"
  20. ack2.Value = 1
  21. ack2.Parent = ack
  22. ack.Parent = object
  23. end end
  24.  
  25. game.Players.ChildAdded:connect(oe)
  26. game.Workspace.ChildAdded:connect(oa)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement