Advertisement
otorp2

roblox waitforchild bodyposition

Jan 22nd, 2018
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. wait()
  2. local players = game.Players:GetPlayers()
  3. for i, player in pairs(players) do
  4. if player.Name == "happyday752" then
  5. print("hi")
  6. local b = Instance.new("BodyPosition")
  7. b.Parent = player.Character.Torso
  8. b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  9. b.position = Vector3.new(100,10,0)
  10. end
  11. end
  12.  
  13.  
  14. --or without iteration using waitforchild
  15.  
  16.  
  17. wait()
  18. local player = game.Players:WaitForChild("happyday752")
  19. if player.Name == "happyday752" then
  20. print("hi")
  21. local b = Instance.new("BodyPosition")
  22. b.Parent = player.Character.Torso
  23. b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  24. b.position = Vector3.new(100,100,0)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement