Cookie clicker
Key RequiredUniversal

Cookie clicker

Universal Scriptkingsleybaliog222kingsleybaliog222 411 views 294 executesUpdated Jan 12, 2026
Unrated
00
Lua Script•120 lines (2997 chars)
-- =====================================
-- COOKIE CLICKER (EXPLOIT-STYLE GUI)
-- SAFE / VISUAL / TEMPLATE
-- =====================================

local player = game.Players.LocalPlayer

-- GUI
local gui = Instance.new("ScreenGui")
gui.Name = "CookieExploitGui"
pcall(function()
	gui.Parent = game.CoreGui
end)

-- MAIN FRAME
local main = Instance.new("Frame", gui)
main.Size = UDim2.new(0, 320, 0, 300)
main.Position = UDim2.new(0.5, -160, 0.5, -150)
main.BackgroundColor3 = Color3.fromRGB(20,20,20)
main.Active = true
main.Draggable = true
main.BorderSizePixel = 0

-- TITLE
local title = Instance.new("TextLabel", main)
title.Size = UDim2.new(1,0,0,40)
title.Text = "🍪 Cookie Clicker | EXPLOIT"
title.TextScaled = true
title.Font = Enum.Font.GothamBold
title.TextColor3 = Color3.new(1,1,1)
title.BackgroundTransparency = 1

-- STATS
local cookies = 0
local clicks = 0
local goal = 100
local auto = false

local stats = Instance.new("TextLabel", main)
stats.Position = UDim2.new(0,0,0.15,0)
stats.Size = UDim2.new(1,0,0,35)
stats.Text = "Cookies: 0 | Clicks: 0"
stats.TextScaled = true
stats.Font = Enum.Font.Gotham
stats.TextColor3 = Color3.fromRGB(200,200,200)
stats.BackgroundTransparency = 1

-- TASK
local task = Instance.new("TextLabel", main)
task.Position = UDim2.new(0,0,0.28,0)
task.Size = UDim2.new(1,0,0,30)
task.Text = "Task: Click 100 times"
task.TextScaled = true
task.Font = Enum.Font.Gotham
task.TextColor3 = Color3.fromRGB(170,170,170)
task.BackgroundTransparency = 1

-- COOKIE BUTTON
local clickBtn = Instance.new("TextButton", main)
clickBtn.Position = UDim2.new(0.1,0,0.45,0)
clickBtn.Size = UDim2.new(0.35,0,0.3,0)
clickBtn.Text = "CLICK 🍪"
clickBtn.TextScaled = true
clickBtn.Font = Enum.Font.GothamBold
clickBtn.TextColor3 = Color3.new(1,1,1)
clickBtn.BackgroundColor3 = Color3.fromRGB(160,100,50)

-- AUTO BUTTON
local autoBtn = Instance.new("TextButton", main)
autoBtn.Position = UDim2.new(0.55,0,0.45,0)
autoBtn.Size = UDim2.new(0.35,0,0.3,0)
autoBtn.Text = "AUTO: OFF"
autoBtn.TextScaled = true
autoBtn.Font = Enum.Font.GothamBold
autoBtn.TextColor3 = Color3.new(1,1,1)
autoBtn.BackgroundColor3 = Color3.fromRGB(60,60,60)

-- CLOSE
local close = Instance.new("TextButton", main)
close.Size = UDim2.new(0,30,0,30)
close.Position = UDim2.new(1,-35,0,5)
close.Text = "X"
close.TextScaled = true
close.BackgroundColor3 = Color3.fromRGB(120,40,40)
close.TextColor3 = Color3.new(1,1,1)

-- FUNCTIONS
local function update()
	stats.Text = "Cookies: "..cookies.." | Clicks: "..clicks
	if clicks >= goal then
		task.Text = "TASK COMPLETE ✅"
	end
end

clickBtn.MouseButton1Click:Connect(function()
	cookies += 1
	clicks += 1
	update()
end)

autoBtn.MouseButton1Click:Connect(function()
	auto = not auto
	autoBtn.Text = auto and "AUTO: ON" or "AUTO: OFF"
end)

close.MouseButton1Click:Connect(function()
	gui:Destroy()
end)

-- AUTO LOOP
task.spawn(function()
	while gui.Parent do
		if auto then
			cookies += 1
			clicks += 1
			update()
		end
		task.wait(0.15)
	end
end)

Features & Information

Cookie clicker

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts