Advertisement
builderboy256

Untitled

Jan 31st, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.13 KB | None | 0 0
  1. local Services = {
  2.     Players = game:GetService("Players"),
  3.     ReplicatedStorage = game:GetService("ReplicatedStorage"),
  4.     Teams = game:GetService("Teams"),
  5. }
  6.  
  7. -- Objects
  8.  
  9. local _256JGUI = Instance.new("ScreenGui")
  10. local Main = Instance.new("Frame")
  11. local TopBar = Instance.new("TextLabel")
  12. local Close = Instance.new("TextButton")
  13. local AutoArrest = Instance.new("TextButton")
  14.  
  15. -- Properties
  16.  
  17. _256JGUI.Name = "256JGUI"
  18. _256JGUI.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  19.  
  20. Main.Name = "Main"
  21. Main.Parent = _256JGUI
  22. Main.Active = true
  23. Main.BackgroundColor3 = Color3.new(0.172549, 0.243137, 0.313726)
  24. Main.BorderColor3 = Color3.new(0.4, 0.0784314, 0.588235)
  25. Main.Draggable = true
  26. Main.Position = UDim2.new(0.512844026, 0, 0.0545905717, 0)
  27. Main.Size = UDim2.new(0, 357, 0, 313)
  28.  
  29. TopBar.Name = "TopBar"
  30. TopBar.Parent = Main
  31. TopBar.Active = true
  32. TopBar.BackgroundColor3 = Color3.new(0.172549, 0.243137, 0.352941)
  33. TopBar.Size = UDim2.new(0, 357, 0, 27)
  34. TopBar.Font = Enum.Font.Cartoon
  35. TopBar.Text = "Jailbreak Gui by not gay#8157"
  36. TopBar.TextColor3 = Color3.new(1, 1, 1)
  37. TopBar.TextSize = 24
  38. TopBar.TextWrapped = true
  39. TopBar.TextXAlignment = Enum.TextXAlignment.Left
  40.  
  41. Close.Name = "Close"
  42. Close.Parent = Main
  43. Close.BackgroundColor3 = Color3.new(0.752941, 0.223529, 0.168627)
  44. Close.Position = UDim2.new(0.851540625, 0, 0, 0)
  45. Close.Size = UDim2.new(0, 53, 0, 27)
  46. Close.Font = Enum.Font.Fantasy
  47. Close.Text = "X"
  48. Close.TextSize = 22
  49.  
  50. AutoArrest.Name = "Auto Arrest"
  51. AutoArrest.Parent = Main
  52. AutoArrest.BackgroundColor3 = Color3.new(0.172549, 0.243137, 0.352941)
  53. AutoArrest.Position = UDim2.new(0.168067232, 0, 0.143769965, 0)
  54. AutoArrest.Size = UDim2.new(0, 236, 0, 37)
  55. AutoArrest.Font = Enum.Font.Cartoon
  56. AutoArrest.Text = "Auto Arrest"
  57. AutoArrest.TextColor3 = Color3.new(1, 1, 1)
  58. AutoArrest.TextSize = 20
  59. AutoArrest.MouseButton1Down:connect(function()
  60. while wait() do
  61.     while wait(0.1) do
  62.         local localRootPart = Services.Players.LocalPlayer.Character.HumanoidRootPart
  63.         for i,v in pairs(Services.ReplicatedStorage.Resource:GetChildren()) do
  64.             if v:IsA("RemoteEvent") then
  65.                 event = v
  66.                 break
  67.             end
  68.         end
  69.        
  70.         local function getCFrameBehindPart(part)
  71.             local partRotation = part.CFrame:toAxisAngle()
  72.             local bottomOfPart = part.CFrame.p-Vector3.new(0,part.Size.Y/2,0)
  73.             local behindPart = CFrame.new(bottomOfPart-part.CFrame.lookVector*1.2)+Vector3.new(0,1,0)
  74.             return behindPart*CFrame.Angles(partRotation.X,partRotation.Y,partRotation.Z)
  75.         end
  76.        
  77.         for _,plr in pairs(Services.Teams.Criminal:GetPlayers()) do
  78.             local char = plr.Character
  79.             if char ~= nil and char:FindFirstChild("HumanoidRootPart") ~= nil then
  80.                 local rootPart = char.HumanoidRootPart
  81.                 repeat
  82.                     event:FireServer("VehicleExit")
  83.                     localRootPart.CFrame = getCFrameBehindPart(rootPart)
  84.                     wait()
  85.                     for _,veh in pairs(workspace.Vehicles:GetChildren()) do
  86.                         event:FireServer("AttemptVehicleEject",veh)
  87.                     end
  88.                     event:FireServer("AttemptArrest",plr.Name)
  89.                 until plr.Team.Name ~= "Criminal" or rootPart == nil
  90.             end
  91.         end
  92.     end
  93. end
  94. end)
  95.  
  96. Close.MouseButton1Click:connect(function()
  97.     _256JGUI:Destroy()
  98. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement