You are on page 1of 6

-- Gui to Lua

-- Version: 3

-- Instances:

local ScreenGui = Instance.new("ScreenGui")


local Frame = Instance.new("Frame")
local TextLabel = Instance.new("TextLabel")
local ObGuns = Instance.new("TextButton")
local NexusTP = Instance.new("TextButton")
local BackTP = Instance.new("TextButton")
local BeGuard = Instance.new("TextButton")
local BeInmate = Instance.new("TextButton")
local BeCriminal = Instance.new("TextButton")
local BeNeutral = Instance.new("TextButton")
local YardTP = Instance.new("TextButton")
local CafeTP = Instance.new("TextButton")
local Refresh = Instance.new("TextButton")
local Respawn = Instance.new("TextButton")

--Properties:

ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0)
Frame.BorderColor3 = Color3.new(0, 0, 1)
Frame.BorderSizePixel = 5
Frame.Position = UDim2.new(0.575310469, 0, 0.1202989, 0)
Frame.Size = UDim2.new(0, 200, 0, 200)

TextLabel.Parent = Frame
TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
TextLabel.BackgroundTransparency = 1
TextLabel.Position = UDim2.new(0.0214755256, 0, -0.0327305198, 0)
TextLabel.Size = UDim2.new(0, 180, 0, 50)
TextLabel.Font = Enum.Font.SourceSans
TextLabel.Text = "Nihilize H4X"
TextLabel.TextColor3 = Color3.new(0, 0, 1)
TextLabel.TextScaled = true
TextLabel.TextSize = 30
TextLabel.TextWrapped = true

ObGuns.Name = "ObGuns"
ObGuns.Parent = Frame
ObGuns.BackgroundColor3 = Color3.new(0, 0, 0)
ObGuns.BorderColor3 = Color3.new(0, 0, 1)
ObGuns.BorderSizePixel = 3
ObGuns.Position = UDim2.new(0.0673193336, 0, 0.231513202, 0)
ObGuns.Size = UDim2.new(0, 73, 0, 32)
ObGuns.Font = Enum.Font.SourceSans
ObGuns.Text = "Guns"
ObGuns.TextColor3 = Color3.new(0, 0, 1)
ObGuns.TextScaled = true
ObGuns.TextSize = 30
ObGuns.TextWrapped = true

NexusTP.Name = "NexusTP"
NexusTP.Parent = Frame
NexusTP.BackgroundColor3 = Color3.new(0, 0, 0)
NexusTP.BorderColor3 = Color3.new(0, 0, 1)
NexusTP.BorderSizePixel = 3
NexusTP.Position = UDim2.new(0.0659695342, 0, 0.491513222, 0)
NexusTP.Size = UDim2.new(0, 73, 0, 32)
NexusTP.Font = Enum.Font.SourceSans
NexusTP.Text = "Nexus"
NexusTP.TextColor3 = Color3.new(0, 0, 1)
NexusTP.TextScaled = true
NexusTP.TextSize = 30
NexusTP.TextWrapped = true

BackTP.Name = "BackTP"
BackTP.Parent = Frame
BackTP.BackgroundColor3 = Color3.new(0, 0, 0)
BackTP.BorderColor3 = Color3.new(0, 0, 1)
BackTP.BorderSizePixel = 3
BackTP.Position = UDim2.new(0.0673193187, 0, 0.751513183, 0)
BackTP.Size = UDim2.new(0, 73, 0, 32)
BackTP.Font = Enum.Font.SourceSans
BackTP.Text = "Back"
BackTP.TextColor3 = Color3.new(0, 0, 1)
BackTP.TextScaled = true
BackTP.TextSize = 30
BackTP.TextWrapped = true

BeGuard.Name = "BeGuard"
BeGuard.Parent = Frame
BeGuard.BackgroundColor3 = Color3.new(0.0352941, 0, 0.301961)
BeGuard.BorderColor3 = Color3.new(0, 0, 1)
BeGuard.BorderSizePixel = 3
BeGuard.Position = UDim2.new(0.620703399, 0, 0.23018752, 0)
BeGuard.Size = UDim2.new(0, 17, 0, 32)
BeGuard.Font = Enum.Font.SourceSans
BeGuard.Text = ""
BeGuard.TextColor3 = Color3.new(0, 0, 1)
BeGuard.TextScaled = true
BeGuard.TextSize = 30
BeGuard.TextWrapped = true

BeInmate.Name = "BeInmate"
BeInmate.Parent = Frame
BeInmate.BackgroundColor3 = Color3.new(0.360784, 0.156863, 0.00392157)
BeInmate.BorderColor3 = Color3.new(0, 0, 1)
BeInmate.BorderSizePixel = 3
BeInmate.Position = UDim2.new(0.535703421, 0, 0.23018752, 0)
BeInmate.Size = UDim2.new(0, 17, 0, 32)
BeInmate.Font = Enum.Font.SourceSans
BeInmate.Text = ""
BeInmate.TextColor3 = Color3.new(0, 0, 1)
BeInmate.TextScaled = true
BeInmate.TextSize = 30
BeInmate.TextWrapped = true

BeCriminal.Name = "BeCriminal"
BeCriminal.Parent = Frame
BeCriminal.BackgroundColor3 = Color3.new(0.376471, 0, 0.00392157)
BeCriminal.BorderColor3 = Color3.new(0, 0, 1)
BeCriminal.BorderSizePixel = 3
BeCriminal.Position = UDim2.new(0.705703378, 0, 0.23018752, 0)
BeCriminal.Size = UDim2.new(0, 17, 0, 32)
BeCriminal.Font = Enum.Font.SourceSans
BeCriminal.Text = ""
BeCriminal.TextColor3 = Color3.new(0, 0, 1)
BeCriminal.TextScaled = true
BeCriminal.TextSize = 30
BeCriminal.TextWrapped = true

BeNeutral.Name = "BeNeutral"
BeNeutral.Parent = Frame
BeNeutral.BackgroundColor3 = Color3.new(0.54902, 0.54902, 0.54902)
BeNeutral.BorderColor3 = Color3.new(0, 0, 1)
BeNeutral.BorderSizePixel = 3
BeNeutral.Position = UDim2.new(0.790703356, 0, 0.23018752, 0)
BeNeutral.Size = UDim2.new(0, 17, 0, 32)
BeNeutral.Font = Enum.Font.SourceSans
BeNeutral.Text = ""
BeNeutral.TextColor3 = Color3.new(0, 0, 1)
BeNeutral.TextScaled = true
BeNeutral.TextSize = 30
BeNeutral.TextWrapped = true

YardTP.Name = "YardTP"
YardTP.Parent = Frame
YardTP.BackgroundColor3 = Color3.new(0, 0, 0)
YardTP.BorderColor3 = Color3.new(0, 0, 1)
YardTP.BorderSizePixel = 3
YardTP.Position = UDim2.new(0.51096952, 0, 0.491513222, 0)
YardTP.Size = UDim2.new(0, 73, 0, 32)
YardTP.Font = Enum.Font.SourceSans
YardTP.Text = "Yard"
YardTP.TextColor3 = Color3.new(0, 0, 1)
YardTP.TextScaled = true
YardTP.TextSize = 30
YardTP.TextWrapped = true

CafeTP.Name = "CafeTP"
CafeTP.Parent = Frame
CafeTP.BackgroundColor3 = Color3.new(0, 0, 0)
CafeTP.BorderColor3 = Color3.new(0, 0, 1)
CafeTP.BorderSizePixel = 3
CafeTP.Position = UDim2.new(0.51096952, 0, 0.746513247, 0)
CafeTP.Size = UDim2.new(0, 73, 0, 32)
CafeTP.Font = Enum.Font.SourceSans
CafeTP.Text = "Cafe"
CafeTP.TextColor3 = Color3.new(0, 0, 1)
CafeTP.TextScaled = true
CafeTP.TextSize = 30
CafeTP.TextWrapped = true

Refresh.Name = "Refresh"
Refresh.Parent = Frame
Refresh.BackgroundColor3 = Color3.new(0, 0, 0)
Refresh.BorderColor3 = Color3.new(0, 0, 1)
Refresh.BorderSizePixel = 3
Refresh.Position = UDim2.new(0.0659695342, 0, 0.996513247, 0)
Refresh.Size = UDim2.new(0, 73, 0, 32)
Refresh.Font = Enum.Font.SourceSans
Refresh.Text = "Refresh"
Refresh.TextColor3 = Color3.new(0, 0, 1)
Refresh.TextScaled = true
Refresh.TextSize = 30
Refresh.TextWrapped = true

Respawn.Name = "Respawn"
Respawn.Parent = Frame
Respawn.BackgroundColor3 = Color3.new(0, 0, 0)
Respawn.BorderColor3 = Color3.new(0, 0, 1)
Respawn.BorderSizePixel = 3
Respawn.Position = UDim2.new(0.505969524, 0, 0.996513247, 0)
Respawn.Size = UDim2.new(0, 73, 0, 32)
Respawn.Font = Enum.Font.SourceSans
Respawn.Text = "Respawn"
Respawn.TextColor3 = Color3.new(0, 0, 1)
Respawn.TextScaled = true
Respawn.TextSize = 30
Respawn.TextWrapped = true

-- Scripts:

ObGuns.MouseButton1Down:connect(function()

game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Reming
ton 870"].ITEMPICKUP)

game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M4A1"]
.ITEMPICKUP)

game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["AK-
47"].ITEMPICKUP)

game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M9"].I
TEMPICKUP)
--[[
for i,v in pairs(Workspace.Prison_ITEMS.giver:GetChildren()) do

OwO = Workspace.Remote.ItemHandler:InvokeServer(v.ITEMPICKUP)
end]]--
end)

YardTP.MouseButton1Down:connect(function()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
CFrame.new(779,99,2477)
end)

CafeTP.MouseButton1Down:connect(function()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
CFrame.new(879,99,2247)
end)

Refresh.MouseButton1Down:connect(function()
local lastPos =
game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
local plr = game.Players.LocalPlayer.Name
local gayevent = game:GetService("Workspace").Remote.loadchar
gayevent:InvokeServer(plr)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
CFrame.new(lastPos)
end)

NexusTP.MouseButton1Down:connect(function()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame =
CFrame.new(879,99,2377)
end)

BackTP.MouseButton1Down:connect(function()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(980,
101, 2327)
end)

BeNeutral.MouseButton1Down:connect(function()
Workspace.Remote.TeamEvent:FireServer("Medium stone grey")
end)

BeInmate.MouseButton1Down:connect(function()
Workspace.Remote.TeamEvent:FireServer("Bright orange")
end)

BeGuard.MouseButton1Down:connect(function()
Workspace.Remote.TeamEvent:FireServer("Bright blue")
end)

BeCriminal.MouseButton1Down:connect(function()
LCS = game.Workspace["Criminals Spawn"].SpawnLocation
LCS.CanCollide = false
LCS.Size = Vector3.new(51.05, 24.12, 54.76)
LCS.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
LCS.Transparency = 1
wait(0.5)
LCS.CFrame = CFrame.new(-920.510803, 92.2271957, 2138.27002, 0, 0, -1, 0, 1,
0, 1, 0, 0)
LCS.Size = Vector3.new(6, 0.2, 6)
LCS.Transparency = 0
end)

Respawn.MouseButton1Down:connect(function()
local lastPos =
game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
local plr = game.Players.LocalPlayer.Name
local gayevent = game:GetService("Workspace").Remote.loadchar
gayevent:InvokeServer(plr)
end)

function dragify(Frame)
dragToggle = nil
dragSpeed = 100000 -- You can edit this.
dragInput = nil
dragStart = nil
dragPos = nil

function updateInput(input)
Delta = input.Position - dragStart
Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X,
startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
game:GetService("TweenService"):Create(Frame, TweenInfo.new(0), {Position =
Position}):Play()
end

Frame.InputBegan:Connect(function(input)
if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType
== Enum.UserInputType.Touch) then
dragToggle = true
dragStart = input.Position
startPos = Frame.Position
input.Changed:Connect(function()
if (input.UserInputState == Enum.UserInputState.End) then
dragToggle = false
end
end)
end
end)

Frame.InputChanged:Connect(function(input)
if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType
== Enum.UserInputType.Touch) then
dragInput = input
end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
if (input == dragInput and dragToggle) then
updateInput(input)
end
end)
end

dragify(Frame)

You might also like