Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local players = game.Players:GetPlayers()
- for i, player in pairs(players) do
- if player.Name == "happyday752" then
- print("hi")
- local b = Instance.new("BodyPosition")
- b.Parent = player.Character.Torso
- b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- b.position = Vector3.new(100,10,0)
- end
- end
- --or without iteration using waitforchild
- wait()
- local player = game.Players:WaitForChild("happyday752")
- if player.Name == "happyday752" then
- print("hi")
- local b = Instance.new("BodyPosition")
- b.Parent = player.Character.Torso
- b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- b.position = Vector3.new(100,100,0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement