Advertisement
Ben_Scripts343

Teleport script KAT

May 29th, 2021
3,428
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 1 0
  1. local Players = game.Players:GetPlayers()
  2. local Player = game.Players.LocalPlayer
  3. --teleport script
  4.  
  5. if #Players > 1 then -- you as a player
  6. table.remove(Players,1) -- remove you
  7. end
  8.  
  9. local rnd = Players[math.random(1,#Players)] -- random players
  10.  
  11. local sav = Player.Character.HumanoidRootPart.CFrame -- saved pos
  12.  
  13. print(rnd)
  14. wait(0.2)
  15. Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
  16. wait(0.2)
  17. Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
  18. wait(0.2)
  19. Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
  20. wait(0.01)
  21. Players.Character.HumanoidRootPart.CFrame = sav -- go back to place
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement