Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tp(bf,bg,bh)
- local bi=35;
- local bj=true;
- be=true;
- game:GetService('RunService').Stepped:connect(function()
- if be == true then
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- end
- end)
- if bf<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X then
- while bf<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X-bi,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
- end
- end;
- if bh<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z then
- while bh<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z-bi))
- end
- end;
- if bf>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X then
- while bf>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X+bi,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
- end
- end;
- if bh>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z then
- while bh>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z+bi))
- end
- end;
- if bg<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y then
- while bg<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y-bi,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
- end
- end;
- if bg>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y then
- while bg>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y+bi,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
- end
- end;
- bj=false
- end
- tp(0,0,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement