Advertisement
matekaOSF2

XPFARMTurbo

Dec 24th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. function tp(x,y,z)local a=25;moving=true;if x<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X then while x<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-a,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))end end;if z<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z then while z<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-a))end end;if x>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X then while x>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+a,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))end end;if z>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z then while z>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+a))end end;if y<game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y then while y<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-a,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))end end;if y>game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y then while y>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+a,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))end end;moving=false end;spawn(function()game:getService("RunService"):BindToRenderStep("",0,function()if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid")then return end;if moving==true then game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)end end)end)game.Players.LocalPlayer.Character:MoveTo(Vector3.new(x,y,z))
  2.  
  3. local YEET = true
  4.  
  5. while wait() and YEET == true do
  6. local Target = nil
  7. for _, v in next, game.Players:GetPlayers() do
  8. if v.Team.Name == "Criminals" or v.Team.Name == "Villians" then
  9. if Target == nil or game.Players.LocalPlayer:DistanceFromCharacter(v.Character.HumanoidRootPart).Position
  10. game.Players.LocalPlayer:DistanceFromCharacter(Target.Character.HumanoidRootPart.Position) then
  11. Target = v
  12. end
  13. end
  14. end
  15. if game.Players.LocalPlayer:DistanceFromCharacter(Target.Character.HumanoidRootPart.Position) > 200 then
  16. local TP = Target.Character.HumanoidRootPart.Position
  17. tp(TP.x,TP.y,TP.z)
  18. end
  19. if game.Players.LocalPlayer.Character.Humanoid > 25 then
  20. for i = 1, 15 do
  21. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
  22.  
  23. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack:FindFirstChild("Handcuffs"))
  24. game.ReplicatedStorage.Event:FireServer("Eject", Target)
  25.  
  26. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack:FindFirstAncestor("Tazer"))
  27. game.ReplicatedStorage.Event:FireServer("TAZ", Target.Character.HumanoidRootPart)
  28. end
  29. else
  30. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
  31.  
  32. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack:FindFirstChild("Handcuffs"))
  33. game.ReplicatedStorage.Event:FireServer("Arrest", Target)
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement