Meliodas0_0

Jailbreak AutoArrest

Jul 8th, 2019
605
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local v30 = Vector3.new()
  2. local root = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  3. local VirtualInput = game:GetService("VirtualInputManager")
  4.  
  5. local function triggerSpec(part)
  6. --look at it then press key
  7. workspace.CurrentCamera.CameraType = "Watch"
  8. workspace.CurrentCamera.CameraSubject = part
  9. wait()
  10. workspace.CurrentCamera.CameraType = "Custom"
  11. workspace.CurrentCamera.CameraSubject = game:GetService("Players").LocalPlayer.Character.Humanoid
  12. wait()
  13. VirtualInput:SendKeyEvent(true, "E", false, game)
  14. end
  15.  
  16. local function waitWhile(t,exitFunc)
  17. local elapsed = 0
  18. local increment = 0.1
  19. t = (t == nil or t <= 0) and 0.001 or t
  20. increment = (increment > t) and t or increment
  21. while elapsed < t and (exitFunc==nil or exitFunc(elapsed)) do
  22. elapsed = elapsed + wait(t-elapsed < increment and t-elapsed or increment)
  23. end
  24. return elapsed
  25. end
  26.  
  27. local function perfectTP(cf)
  28. local oldg = workspace.Gravity
  29. workspace.Gravity = 0
  30. local door = workspace.Apartments.Skyscraper1.ExitDoor.Touch
  31. local oldcf = door.CFrame
  32. local elapsed,lastelapsed = 0,0
  33. while (root.Position-cf.p).magnitude-2 > root.Velocity.magnitude*(elapsed-lastelapsed) and elapsed < 9 do
  34. lastelapsed=elapsed
  35. door.CFrame = root.CFrame
  36. elapsed=elapsed+wait()
  37. door.CFrame = oldcf
  38. root.CFrame = cf
  39. root.Velocity,root.RotVelocity=v30,v30
  40. elapsed=elapsed+wait(0.5)
  41. end
  42. workspace.Gravity = oldg
  43. end
  44.  
  45. for _,part in ipairs(workspace.Buildings:GetChildren()) do
  46. if (part.Position-Vector3.new(-302.6,30.3,1431.9)).magnitude < 1 then
  47. part.CanCollide=false
  48. end
  49. end
  50.  
  51. local function Arrest()
  52. local Stepped = game:GetService("RunService").Stepped
  53. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  54. if v.Team.Name == "Criminal" or v.Team.Name == game:GetService("Teams"):WaitForChild("Criminal") and v.Name ~= "putnamehere" then
  55. repeat
  56. wait()
  57. if v.Team.Name == "Criminal" then
  58. root.CFrame = v.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 1)
  59. --perfectTP(v.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 1))
  60. triggerSpec(v.Character.HumanoidRootPart)
  61. end
  62. until v.Team.Name ~= "Criminal"
  63. VirtualInput:SendKeyEvent(false, "E", false, game)
  64. end
  65. end
  66. end
  67.  
  68. Arrest()
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×