Advertisement
SoulessRex

Untitled

Oct 5th, 2018
2,562
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. -- Random Player Teleport Script For Roblox
  2.  
  3. -- SoulessRex Was Here
  4.  
  5. function teleportfunction()
  6. Selected = false
  7. repeat
  8. for i, v in pairs(game.Workspace:GetChildren()) do
  9. wait()
  10. local randommath = math.random(1,2)
  11. if v:IsA("Model") then
  12. local plr = game.Players.LocalPlayer
  13. local newplr = game.Players:FindFirstChild(v.Name)
  14. if newplr ~= nil and Selected == true then
  15. if randommath == 2 and newplr.Name ~= plr.Name then
  16. Selected = true
  17. plr.Character:MoveTo(newplr.Character.Torso.Position)
  18. end
  19. end
  20. end
  21. end
  22. until Selected == true
  23. end
  24.  
  25. teleportfunction()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement