local Lighting = game:GetService("Lighting")
local function CreateButton(text, posY, callback)
local Button = Instance.new("TextButton")
Button.Size = UDim2.new(0, 200, 0, 40)
Button.Position = UDim2.new(0, 270, 0, posY)
Button.BackgroundColor3 = Color3.fromRGB(35,35,35)
Button.TextColor3 = Color3.fromRGB(255,255,255)
Button.Font = Enum.Font.GothamBold
Button.Text = text
Button.Parent = Main
local Corner = Instance.new("UICorner")
Corner.Parent = Button
Button.MouseButton1Click:Connect(callback)
return Button
end
-- 1. Lock (placeholder)
CreateButton("Lock", 70, function()
print("Lock button pressed")
end)
-- 2. Fog
local FogEnabled = false
CreateButton("Fog", 120, function()
FogEnabled = not FogEnabled
if FogEnabled then
Lighting.FogStart = 0
Lighting.FogEnd = 150
Lighting.FogColor = Color3.fromRGB(255, 105, 180) -- default pink
else
Lighting.FogEnd = 100000
end
end)
-- Color Picker Labels
local ColorLabel = Instance.new("TextLabel")
ColorLabel.Size = UDim2.new(0,200,0,25)
ColorLabel.Position = UDim2.new(0,270,0,170)
ColorLabel.BackgroundTransparency = 1
ColorLabel.Text = "Fog Color RGB"
ColorLabel.TextColor3 = Color3.new(1,1,1)
ColorLabel.Font = Enum.Font.Gotham
ColorLabel.Parent = Main
local function CreateRGBBox(xOffset, placeholder)
local Box = Instance.new("TextBox")
Box.Size = UDim2.new(0,50,0,30)
Box.Position = UDim2.new(0,xOffset,0,200)
Box.PlaceholderText = placeholder
Box.Text = ""
Box.BackgroundColor3 = Color3.fromRGB(45,45,45)
Box.TextColor3 = Color3.new(1,1,1)
Box.Font = Enum.Font.Gotham
Box.Parent = Main
local Corner = Instance.new("UICorner")
Corner.Parent = Box
return Box
end
local RBox = CreateRGBBox(270, "R")
local GBox = CreateRGBBox(330, "G")
local BBox = CreateRGBBox(390, "B")
CreateButton("Apply Fog Color", 250, function()
local R = math.clamp(tonumber(RBox.Text) or 255, 0, 255)
local G = math.clamp(tonumber(GBox.Text) or 105, 0, 255)
local B = math.clamp(tonumber(BBox.Text) or 180, 0, 255)
Lighting.FogColor = Color3.fromRGB(R, G, B)
end)
-- 3. Hitboxes (visual placeholder only)
CreateButton("Hitboxes", 300, function()
print("Hitboxes button pressed")
end)