Nova355killer

Auto Arrest JB

Mar 21st, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. local plrs = game:service'Players'
  2. local lp = plrs.LocalPlayer
  3. local s = game:service'RunService'.Stepped
  4.  
  5. function checks(v)
  6. if v.Character then
  7. if v.Character:FindFirstChild'HumanoidRootPart' then
  8. return true
  9. end
  10. end
  11. return false
  12. end
  13.  
  14.  
  15. function teleportbypass(pos)
  16. lp.Character:FindFirstChildOfClass'Humanoid'.Name = 'H'
  17. local rs = s:Connect(function()
  18. if checks(lp) then
  19. lp.Character.HumanoidRootPart.Velocity = Vector3.new (0,0,0)
  20. end
  21. end)
  22. repeat wait(.1)
  23. local hrp = lp.Character.HumanoidRootPart
  24. hrp.CFrame = CFrame.new (hrp.CFrame.p, pos.Position)
  25. hrp.CFrame = hrp.CFrame + hrp.CFrame.LookVector * 60
  26. until lp:DistanceFromCharacter(pos.Position) < 60; wait(.5)
  27. lp.Character:FindFirstChildOfClass'Humanoid'.Name = 'Humanoid'
  28. rs: Disconnect()
  29. end
  30.  
  31. function findcriminals(plr)
  32. for i,v in pairs(game:service'Teams'.Criminal:GetPlayers()) do
  33. if v.Name == plr.Name then
  34. return true
  35. end
  36. end
  37. return false
  38. end
  39.  
  40. for i, v in pairs(game: service'Teams'.Criminal:GetPlayers()) do
  41. if checks(v) and checks(lp) then
  42. teleportbypass(v.Character.HumanoidRootPart)
  43. repeat s:Wait()
  44. if checks(v) and checks(lp) then
  45. lp.Character.HumanoidRootPart.Velocity = Vector3.new (0,0,0)
  46. lp.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame * CFrame.new (0,0,5)
  47. if lp.Character:FindFirstChild'RagdollNeck' then
  48. lp.Character.HumanoidRootPart.Anchored = true
  49. repeat wait(.1)
  50. until not v.Character:FindFirstChild'RagdollNeck'
  51. lp.Character.HumanoidRootPart.Anchored = false
  52. end
  53. end
  54. until not checks(v) or not checks(lp) or v.Character: FindFirstChild'Handcuffs' or not findcriminals(v)
  55. end
  56. end
Add Comment
Please, Sign In to add comment