Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Press X to stop the teleporting
- --[[This can easily break. If it does, press C to fix your camera
- You may have to keep executing if it breaks
- Thanks for using, have fun annoying servers!
- ]]
- teleporting = true
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "x" then
- teleporting = not teleporting
- end
- end)
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "c" then
- workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- end)
- while game:GetService("RunService").Stepped:wait() do
- if teleporting == true then
- workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
- game.Players:GetChildren()[math.random(1,game.Players.NumPlayers)].Character["Left Leg"].CFrame or game.Players:GetChildren()[math.random(1,game.Players.NumPlayers)].Character["Right Leg"].CFrame
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- game.Players.LocalPlayer.Character.Humanoid.Jump = true
- elseif teleporting == false then
- workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement