
Keyless

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.ResetOnSpawn = false
local main = Instance.new("Frame")
main.Size = UDim2.new(0, 500, 0, 400)
main.Position = UDim2.new(0.3, 0, 0.25, 0)
main.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
main.Active = true
main.Draggable = true
main.Parent = gui
Instance.new("UICorner", main)
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -40, 0, 40)
title.Position = UDim2.new(0, 10, 0, 0)
title.BackgroundTransparency = 1
title.Text = "CHEAT GUI"
title.TextColor3 = Color3.new(1,1,1)
title.Font = Enum.Font.GothamBold
title.TextScaled = true
title.Parent = main
local close = Instance.new("TextButton")
close.Size = UDim2.new(0, 35, 0, 35)
close.Position = UDim2.new(1, -40, 0, 3)
close.Text = "X"
close.TextScaled = true
close.Font = Enum.Font.GothamBold
close.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
close.TextColor3 = Color3.new(1,1,1)
close.Parent = main
Instance.new("UICorner", close)
close.MouseButton1Click:Connect(function()
gui:Destroy()
end)
local refresh = Instance.new("TextButton")
refresh.Size = UDim2.new(0, 80, 0, 35)
refresh.Position = UDim2.new(0, 10, 0, 3)
refresh.Text = "Refresh"
refresh.TextScaled = true
refresh.Font = Enum.Font.GothamBold
refresh.BackgroundColor3 = Color3.fromRGB(70, 70, 150)
refresh.TextColor3 = Color3.new(1,1,1)
refresh.Parent = main
Instance.new("UICorner", refresh)
local vehicleLabel = Instance.new("TextLabel")
vehicleLabel.Size = UDim2.new(0, 220, 0, 30)
vehicleLabel.Position = UDim2.new(0, 15, 0, 50)
vehicleLabel.BackgroundTransparency = 1
vehicleLabel.Text = "Vehicles:"
vehicleLabel.TextColor3 = Color3.new(1,1,1)
vehicleLabel.Font = Enum.Font.GothamBold
vehicleLabel.TextScaled = true
vehicleLabel.Parent = main
local vehicleListFrame = Instance.new("ScrollingFrame")
vehicleListFrame.Size = UDim2.new(0, 220, 0, 220)
vehicleListFrame.Position = UDim2.new(0, 15, 0, 85)
vehicleListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
vehicleListFrame.ScrollBarThickness = 6
vehicleListFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
vehicleListFrame.Parent = main
Instance.new("UICorner", vehicleListFrame)
local vehicleLayout = Instance.new("UIListLayout", vehicleListFrame)
vehicleLayout.Padding = UDim.new(0, 4)
local selectedVehicleButton = nil
local selectedVehicleName = nil
local vehicleTP = Instance.new("TextButton")
vehicleTP.Size = UDim2.new(0, 220, 0, 35)
vehicleTP.Position = UDim2.new(0, 15, 0, 315)
vehicleTP.Text = "Teleport to Selected Vehicle"
vehicleTP.Font = Enum.Font.GothamBold
vehicleTP.TextScaled = true
vehicleTP.BackgroundColor3 = Color3.fromRGB(70, 120, 70)
vehicleTP.TextColor3 = Color3.new(1,1,1)
vehicleTP.Parent = main
Instance.new("UICorner", vehicleTP)
local baseLabel = Instance.new("TextLabel")
baseLabel.Size = UDim2.new(0, 220, 0, 30)
baseLabel.Position = UDim2.new(0, 265, 0, 50)
baseLabel.BackgroundTransparency = 1
baseLabel.Text = "Bases:"
baseLabel.TextColor3 = Color3.new(1,1,1)
baseLabel.Font = Enum.Font.GothamBold
baseLabel.TextScaled = true
baseLabel.Parent = main
local baseListFrame = Instance.new("ScrollingFrame")
baseListFrame.Size = UDim2.new(0, 220, 0, 220)
baseListFrame.Position = UDim2.new(0, 265, 0, 85)
baseListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
baseListFrame.ScrollBarThickness = 6
baseListFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
baseListFrame.Parent = main
Instance.new("UICorner", baseListFrame)
local baseLayout = Instance.new("UIListLayout", baseListFrame)
baseLayout.Padding = UDim.new(0, 4)
local selectedBaseButton = nil
local selectedBaseName = nil
local baseTP = Instance.new("TextButton")
baseTP.Size = UDim2.new(0, 220, 0, 35)
baseTP.Position = UDim2.new(0, 265, 0, 315)
baseTP.Text = "Teleport to Selected Base"
baseTP.Font = Enum.Font.GothamBold
baseTP.TextScaled = true
baseTP.BackgroundColor3 = Color3.fromRGB(70, 120, 70)
baseTP.TextColor3 = Color3.new(1,1,1)
baseTP.Parent = main
Instance.new("UICorner", baseTP)
local removePolice = Instance.new("TextButton")
removePolice.Size = UDim2.new(0, 220, 0, 35)
removePolice.Position = UDim2.new(0, 15, 0, 355)
removePolice.Text = "REMOVE POLICECARS"
removePolice.Font = Enum.Font.GothamBold
removePolice.TextScaled = true
removePolice.BackgroundColor3 = Color3.fromRGB(150, 70, 70)
removePolice.TextColor3 = Color3.new(1,1,1)
removePolice.Parent = main
Instance.new("UICorner", removePolice)
local sellButton = Instance.new("TextButton")
sellButton.Size = UDim2.new(0, 220, 0, 35)
sellButton.Position = UDim2.new(0, 265, 0, 355)
sellButton.Text = "SELL"
sellButton.Font = Enum.Font.GothamBold
sellButton.TextScaled = true
sellButton.BackgroundColor3 = Color3.fromRGB(70, 70, 150)
sellButton.TextColor3 = Color3.new(1,1,1)
sellButton.Parent = main
Instance.new("UICorner", sellButton)
local NORMAL_COLOR = Color3.fromRGB(60, 60, 60)
local SELECTED_COLOR = Color3.fromRGB(60, 150, 60)
local function addVehicleButton(name)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -10, 0, 32)
btn.BackgroundColor3 = NORMAL_COLOR
btn.Text = name
btn.Font = Enum.Font.GothamBold
btn.TextColor3 = Color3.new(1,1,1)
btn.TextScaled = true
btn.Parent = vehicleListFrame
Instance.new("UICorner", btn)
btn.MouseButton1Click:Connect(function()
if selectedVehicleButton then
selectedVehicleButton.BackgroundColor3 = NORMAL_COLOR
end
selectedVehicleButton = btn
selectedVehicleName = name
btn.BackgroundColor3 = SELECTED_COLOR
end)
end
local function addBaseButton(name)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -10, 0, 32)
btn.BackgroundColor3 = NORMAL_COLOR
btn.Text = name
btn.Font = Enum.Font.GothamBold
btn.TextColor3 = Color3.new(1,1,1)
btn.TextScaled = true
btn.Parent = baseListFrame
Instance.new("UICorner", btn)
btn.MouseButton1Click:Connect(function()
if selectedBaseButton then
selectedBaseButton.BackgroundColor3 = NORMAL_COLOR
end
selectedBaseButton = btn
selectedBaseName = name
btn.BackgroundColor3 = SELECTED_COLOR
end)
end
local function updateCanvasSizes()
task.wait() -- allow UIListLayout to update
vehicleListFrame.CanvasSize = UDim2.new(0, 0, 0, vehicleLayout.AbsoluteContentSize.Y)
baseListFrame.CanvasSize = UDim2.new(0, 0, 0, baseLayout.AbsoluteContentSize.Y)
end
local function refreshLists()
-- Clear vehicle list
for _, child in ipairs(vehicleListFrame:GetChildren()) do
if child:IsA("TextButton") then child:Destroy() end
end
-- Clear base list
for _, child in ipairs(baseListFrame:GetChildren()) do
if child:IsA("TextButton") then child:Destroy() end
end
selectedVehicleButton = nil
selectedVehicleName = nil
selectedBaseButton = nil
selectedBaseName = nil
for _, car in ipairs(workspace.ActiveCars:GetChildren()) do
addVehicleButton(car.Name)
end
for _, base in ipairs(workspace.Bases:GetChildren()) do
addBaseButton(base.Name)
end
updateCanvasSizes()
end
refresh.MouseButton1Click:Connect(refreshLists)
refreshLists()
local function getHRP()
local char = player.Character or player.CharacterAdded:Wait()
return char:FindFirstChild("HumanoidRootPart")
end
local function getTeleportPart(obj)
if obj:IsA("BasePart") then return obj end
if obj:IsA("Model") then
return obj.PrimaryPart or obj:FindFirstChildWhichIsA("BasePart")
end
return nil
end
local function teleportTo(obj)
local hrp = getHRP()
if not hrp then return end
local part = getTeleportPart(obj)
if not part then return end
hrp.CFrame = part.CFrame + Vector3.new(0, 5, 0)
end
vehicleTP.MouseButton1Click:Connect(function()
if selectedVehicleName then
local obj = workspace.ActiveCars:FindFirstChild(selectedVehicleName)
if obj then teleportTo(obj) end
end
end)
baseTP.MouseButton1Click:Connect(function()
if selectedBaseName then
local obj = workspace.Bases:FindFirstChild(selectedBaseName)
if obj then teleportTo(obj) end
end
end)
removePolice.MouseButton1Click:Connect(function()
for _, obj in ipairs(workspace.PoliceCars:GetChildren()) do
obj:Destroy()
end
end)
sellButton.MouseButton1Click:Connect(function()
local hrp = getHRP()
if not hrp then return end
local tp = workspace:WaitForChild("SellPoint"):WaitForChild("Teleport")
if tp:IsA("BasePart") then
hrp.CFrame = tp.CFrame + Vector3.new(0, 5, 0)
end
end)
W
Dupe cars script?
Pode fazer um script de um jogo para mim por favor :escape the police to steal a car