matekaOSF2

Untitled

Jan 6th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. function tp(bf,bg,bh)local bi=35;local bj=true;local be=true;game:GetService('RunService').Stepped:connect(function()if be then game.Players.LocalPlayer.Character.Humanoid:ChangeState(11) elseif game.Players.LocalPlayer.Character.HumanoidRootPart.Position < 30 then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =CFrame.new(bf,bg,bh);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; be=false end;function TPMessage()game.ReplicatedStorage.Event:FireServer("Dialogue",{{Text="Teleporting, please wait...",Delay=0.6}})end;
Add Comment
Please, Sign In to add comment