Advertisement
Guest User

Roblox

a guest
Feb 19th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 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. while wait() and _G.YEET do
  4. pcall(function()
  5. local Target;
  6. for _, v in next, game.Players:GetPlayers() do
  7. if v.Team.Name == "Criminals" or v.Team.Name == "Villians" then
  8. if Target==nil or game.Players.LocalPlayer:DistanceFromCharacter(v.Character.HumanoidRootPart.Position) <= game.Players.LocalPlayer:DistanceFromCharacter(Target.Character.HumanoidRootPart.Position) then
  9. Target = v
  10. end
  11. end
  12. end
  13. if game.Players.LocalPlayer:DistanceFromCharacter(Target.Character.HumanoidRootPart.Position) > 200 then
  14. local TP = Target.Character.HumanoidRootPart.Position
  15. tp(TP.x,TP.y,TP.z)
  16. end
  17. if game.Players.LocalPlayer.Character.Humanoid.Health > 25 then
  18. for i = 1, 5 do
  19. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
  20. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack:FindFirstChild("Handcuffs"))
  21. game.ReplicatedStorage.Event:FireServer("Eject", Target)
  22. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack:FindFirstChild("Tazer"))
  23. game.ReplicatedStorage.Event:FireServer("TAZ", Target.Character.HumanoidRootPart)
  24. end
  25. else
  26. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame
  27. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack:FindFirstChild("Handcuffs"))
  28. game.ReplicatedStorage.Event:FireServer("Arrest", Target)
  29. end
  30. end)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement