Fyzeq

Leaderstats

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