Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game.Players:GetPlayers()
- local Player = game.Players.LocalPlayer
- --teleport script
- if #Players > 1 then -- you as a player
- table.remove(Players,1) -- remove you
- end
- local rnd = Players[math.random(1,#Players)] -- random players
- local sav = Player.Character.HumanoidRootPart.CFrame -- saved pos
- print(rnd)
- wait(0.2)
- Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
- wait(0.2)
- Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
- wait(0.2)
- Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
- wait(0.01)
- Players.Character.HumanoidRootPart.CFrame = sav -- go back to place
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement