0% found this document useful (0 votes)
10K views5 pages

Universal Script C00lgui Made by Chatgpt 42919

The document is a Lua script for a Roblox game that creates a customizable GUI for players. It includes various functions such as toggling disco lighting, spawning baseplates, exploding parts, and playing theme music, along with buttons to execute these actions. The GUI allows players to input custom messages and hints, and provides options to manipulate the game's environment and visuals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10K views5 pages

Universal Script C00lgui Made by Chatgpt 42919

The document is a Lua script for a Roblox game that creates a customizable GUI for players. It includes various functions such as toggling disco lighting, spawning baseplates, exploding parts, and playing theme music, along with buttons to execute these actions. The GUI allows players to input custom messages and hints, and provides options to manipulate the game's environment and visuals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

local Players = game:GetService("Players")

local Lighting = game:GetService("Lighting")


local Debris = game:GetService("Debris")
local Workspace = game:GetService("Workspace")
local player = Players.LocalPlayer

local skyboxId = "rbxassetid://78770881422094"


local decalId = "rbxassetid://78770881422094"
local musicId = "rbxassetid://77484784570543"

-- GUI Setup
local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
gui.Name = "c00lgui"

local frame = Instance.new("Frame", gui)


frame.Size = UDim2.new(0, 620, 0, 455)
frame.Position = UDim2.new(0.5, -310, 0.5, -230)
frame.BackgroundColor3 = Color3.new(0, 0, 0)
frame.BorderColor3 = Color3.new(1, 0, 0)
frame.BorderSizePixel = 4
frame.Active = true
frame.Draggable = true

local title = Instance.new("TextLabel", frame)


title.Size = UDim2.new(1, 0, 0, 30)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundColor3 = Color3.new(0, 0, 0)
title.BorderColor3 = Color3.new(1, 0, 0)
title.TextColor3 = Color3.new(1, 1, 1)
title.Text = "c00lgui"
title.Font = Enum.Font.Code
title.TextSize = 22

local input = Instance.new("TextBox", frame)


input.Size = UDim2.new(1, -10, 0, 30)
input.Position = UDim2.new(0, 5, 0, 35)
input.BackgroundColor3 = Color3.new(0, 0, 0)
input.BorderColor3 = Color3.new(1, 0, 0)
input.TextColor3 = Color3.new(1, 1, 1)
input.PlaceholderText = "Type message or custom hint"
input.Font = Enum.Font.Code
input.TextSize = 18

-- Button system
local buttonY = 75
local column = 0
local spacingX = 205
local spacingY = 35

local function createButton(name, callback)


local button = Instance.new("TextButton", frame)
button.Size = UDim2.new(0, 200, 0, 30)
button.Position = UDim2.new(0, 10 + column * spacingX, 0, buttonY)
button.BackgroundColor3 = Color3.new(0, 0, 0)
button.BorderColor3 = Color3.new(1, 0, 0)
button.TextColor3 = Color3.new(1, 1, 1)
button.Font = Enum.Font.Code
button.TextSize = 17
button.Text = name
button.MouseButton1Click:Connect(callback)
column += 1
if column > 2 then
column = 0
buttonY += spacingY
end
end

-- Functions
local discoRunning = false
local function discoToggle()
discoRunning = not discoRunning
if discoRunning then
task.spawn(function()
while discoRunning do
local c = Color3.new(math.random(), math.random(),
math.random())
Lighting.Ambient = c
Lighting.OutdoorAmbient = c
for _, part in ipairs(workspace:GetDescendants()) do
if part:IsA("BasePart") then
part.Color = c
end
end
wait(0.1)
end
end)
end
end

local function spamBaseplates()


for i = 1, 20 do
local p = Instance.new("Part", workspace)
p.Size = Vector3.new(100, 1, 100)
p.Anchored = true
p.Position = Vector3.new(math.random(-500,500), i * 3, math.random(-
500,500))
p.BrickColor = BrickColor.Gray()
end
end

local function explodeAll()


for _, p in ipairs(workspace:GetDescendants()) do
if p:IsA("BasePart") then
local e = Instance.new("Explosion")
e.Position = p.Position
e.Parent = workspace
end
end
end

local function unanchorAll()


for _, p in ipairs(workspace:GetDescendants()) do
if p:IsA("BasePart") then
p.Anchored = false
end
end
end
local function cloneMap()
for _, obj in pairs(workspace:GetChildren()) do
if not Players:GetPlayerFromCharacter(obj) and (obj:IsA("Model") or
obj:IsA("BasePart")) then
local copy = obj:Clone()
copy.Parent = workspace
if copy:IsA("BasePart") then
copy.Position += Vector3.new(20, 0, 20)
end
end
end
end

local function resetLighting()


Lighting.Ambient = Color3.new(0.5, 0.5, 0.5)
Lighting.OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
Lighting.Brightness = 2
end

local function hintPreset()


local h = Instance.new("Hint", workspace)
h.Text = "Team c00lkidd has hacked this game!!"
Debris:AddItem(h, 5)
end

local function hintCustom()


local h = Instance.new("Hint", workspace)
h.Text = input.Text
Debris:AddItem(h, 5)
end

local function sky()


local s = Instance.new("Sky")
s.SkyboxBk = skyboxId
s.SkyboxDn = skyboxId
s.SkyboxFt = skyboxId
s.SkyboxLf = skyboxId
s.SkyboxRt = skyboxId
s.SkyboxUp = skyboxId
Lighting:ClearAllChildren()
s.Parent = Lighting
end

local function talkIt()


local msg = input.Text
for _, plr in pairs(Players:GetPlayers()) do
if plr.Character and plr.Character:FindFirstChild("Head") then
local b = Instance.new("BillboardGui", plr.Character.Head)
b.Size = UDim2.new(0, 200, 0, 40)
b.StudsOffset = Vector3.new(0, 2.5, 0)
b.AlwaysOnTop = true
local l = Instance.new("TextLabel", b)
l.Size = UDim2.new(1, 0, 1, 0)
l.Text = msg
l.TextColor3 = Color3.new(1, 1, 1)
l.BackgroundTransparency = 1
l.TextScaled = true
Debris:AddItem(b, 4)
end
end
end

local function titleAll()


local msg = input.Text
for _, plr in pairs(Players:GetPlayers()) do
if plr.Character and plr.Character:FindFirstChild("Head") then
local t = Instance.new("BillboardGui", plr.Character.Head)
t.Size = UDim2.new(0, 200, 0, 30)
t.StudsOffset = Vector3.new(0, 3.5, 0)
t.AlwaysOnTop = true
local label = Instance.new("TextLabel", t)
label.Size = UDim2.new(1, 0, 1, 0)
label.Text = msg
label.TextColor3 = Color3.new(1, 0, 0)
label.BackgroundTransparency = 1
label.TextScaled = true
Debris:AddItem(t, 10)
end
end
end

local function spamDecals()


for _, part in ipairs(workspace:GetDescendants()) do
if part:IsA("BasePart") then
for _, face in ipairs(Enum.NormalId:GetEnumItems()) do
local decal = Instance.new("Decal")
decal.Texture = decalId
decal.Face = face
decal.Parent = part
end
end
end
end

local function playThemeMusic()


local existing = workspace:FindFirstChild("imentTheme")
if existing then existing:Destroy() end
local music = Instance.new("Sound", workspace)
music.Name = "imentTheme"
music.SoundId = musicId
music.Looped = true
music.Volume = 10
music.PlaybackSpeed = 0.09
music:Play()
end

local function stopThemeMusic()


local m = workspace:FindFirstChild("imentTheme")
if m then m:Destroy() end
end

-- Add Buttons
createButton("Apply Skybox", sky)
createButton("Decal Spam", spamDecals)
createButton("Disco Toggle", discoToggle)
createButton("Spam Baseplates", spamBaseplates)
createButton("Explode Everything", explodeAll)
createButton("Unanchor All", unanchorAll)
createButton("Clone Map", cloneMap)
createButton("Reset Lighting", resetLighting)
createButton("Hint: c00lkidd", hintPreset)
createButton("Custom Hint", hintCustom)
createButton("Talk It", talkIt)
createButton("Title All", titleAll)
createButton("Play Theme Music", playThemeMusic)
createButton("Stop Theme Music", stopThemeMusic)
createButton("Close GUI", function() gui:Destroy() end)

You might also like