Advertisement
karobloxYT

test

Oct 8th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. local test = "poj36"
  2. function tp(x,y,z)
  3. local valtomove = 4
  4. moving = true
  5. if x < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X then
  6. while x < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X do
  7. wait()
  8. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X-valtomove,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
  9. end
  10. end
  11. if z < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z then
  12. while z < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z do
  13. wait()
  14. 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-valtomove))
  15. end
  16. end
  17. if x > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X then
  18. while x > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X do
  19. wait()
  20. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X+valtomove,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
  21. end
  22. end
  23. if z > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z then
  24. while z > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z do
  25. wait()
  26. 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+valtomove))
  27. end
  28. end
  29. if y < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y then
  30. while y < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y do
  31. wait()
  32. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y-valtomove,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
  33. end
  34. end
  35. if y > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y then
  36. while y > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y do
  37. wait()
  38. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y+valtomove,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
  39. end
  40. end
  41. moving = false
  42. end
  43.  
  44. spawn (function()
  45. game:getService("RunService"):BindToRenderStep("",0,function()
  46. if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid") then return end
  47. if moving == true then
  48. game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  49. end
  50. end)
  51. end)
  52. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(x,y,z))
  53.  
  54. while wait() and _G.YEET do
  55. pcall(function()
  56. local Target;
  57. for i,v in next, game.Players:GetPlayers() do
  58. if v.Team.Name == "Criminals" or v.Team.Name == "Villians" then
  59. if Target==nil or game.Players.LocalPlayer:DistanceFromCharacter(v.Character.HumanoidRootPart.Position) <= game.Players.LocalPlayer:DistanceFromCharacter(Target.Character.HumanoidRootPart.Position) then
  60. Target = v
  61. end
  62. end
  63. end
  64. if game.Players.LocalPlayer:DistanceFromCharacter(Target.Character.HumanoidRootPart.Position) > 200 then
  65. local TP = Target.Character.HumanoidRootPart.Position
  66. tp(TP.x,TP.y,TP.z)
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement