Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Services = {
- Players = game:GetService("Players"),
- ReplicatedStorage = game:GetService("ReplicatedStorage"),
- Teams = game:GetService("Teams"),
- }
- -- Objects
- local _256JGUI = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local TopBar = Instance.new("TextLabel")
- local Close = Instance.new("TextButton")
- local AutoArrest = Instance.new("TextButton")
- -- Properties
- _256JGUI.Name = "256JGUI"
- _256JGUI.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- Main.Name = "Main"
- Main.Parent = _256JGUI
- Main.Active = true
- Main.BackgroundColor3 = Color3.new(0.172549, 0.243137, 0.313726)
- Main.BorderColor3 = Color3.new(0.4, 0.0784314, 0.588235)
- Main.Draggable = true
- Main.Position = UDim2.new(0.512844026, 0, 0.0545905717, 0)
- Main.Size = UDim2.new(0, 357, 0, 313)
- TopBar.Name = "TopBar"
- TopBar.Parent = Main
- TopBar.Active = true
- TopBar.BackgroundColor3 = Color3.new(0.172549, 0.243137, 0.352941)
- TopBar.Size = UDim2.new(0, 357, 0, 27)
- TopBar.Font = Enum.Font.Cartoon
- TopBar.Text = "Jailbreak Gui by not gay#8157"
- TopBar.TextColor3 = Color3.new(1, 1, 1)
- TopBar.TextSize = 24
- TopBar.TextWrapped = true
- TopBar.TextXAlignment = Enum.TextXAlignment.Left
- Close.Name = "Close"
- Close.Parent = Main
- Close.BackgroundColor3 = Color3.new(0.752941, 0.223529, 0.168627)
- Close.Position = UDim2.new(0.851540625, 0, 0, 0)
- Close.Size = UDim2.new(0, 53, 0, 27)
- Close.Font = Enum.Font.Fantasy
- Close.Text = "X"
- Close.TextSize = 22
- AutoArrest.Name = "Auto Arrest"
- AutoArrest.Parent = Main
- AutoArrest.BackgroundColor3 = Color3.new(0.172549, 0.243137, 0.352941)
- AutoArrest.Position = UDim2.new(0.168067232, 0, 0.143769965, 0)
- AutoArrest.Size = UDim2.new(0, 236, 0, 37)
- AutoArrest.Font = Enum.Font.Cartoon
- AutoArrest.Text = "Auto Arrest"
- AutoArrest.TextColor3 = Color3.new(1, 1, 1)
- AutoArrest.TextSize = 20
- AutoArrest.MouseButton1Down:connect(function()
- while wait() do
- while wait(0.1) do
- local localRootPart = Services.Players.LocalPlayer.Character.HumanoidRootPart
- for i,v in pairs(Services.ReplicatedStorage.Resource:GetChildren()) do
- if v:IsA("RemoteEvent") then
- event = v
- break
- end
- end
- local function getCFrameBehindPart(part)
- local partRotation = part.CFrame:toAxisAngle()
- local bottomOfPart = part.CFrame.p-Vector3.new(0,part.Size.Y/2,0)
- local behindPart = CFrame.new(bottomOfPart-part.CFrame.lookVector*1.2)+Vector3.new(0,1,0)
- return behindPart*CFrame.Angles(partRotation.X,partRotation.Y,partRotation.Z)
- end
- for _,plr in pairs(Services.Teams.Criminal:GetPlayers()) do
- local char = plr.Character
- if char ~= nil and char:FindFirstChild("HumanoidRootPart") ~= nil then
- local rootPart = char.HumanoidRootPart
- repeat
- event:FireServer("VehicleExit")
- localRootPart.CFrame = getCFrameBehindPart(rootPart)
- wait()
- for _,veh in pairs(workspace.Vehicles:GetChildren()) do
- event:FireServer("AttemptVehicleEject",veh)
- end
- event:FireServer("AttemptArrest",plr.Name)
- until plr.Team.Name ~= "Criminal" or rootPart == nil
- end
- end
- end
- end
- end)
- Close.MouseButton1Click:connect(function()
- _256JGUI:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement