BEST AUTO CAKE FARM
Key RequiredUniversal

BEST AUTO CAKE FARM

Universal ScriptTatatatsahurTatatatsahur 1.1K views 143 executesUpdated May 25, 2026
Unrated
00
Lua Script•159 lines (3802 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")

local player = Players.LocalPlayer

-- LOADING SCREEN
local loadingGui = Instance.new("ScreenGui")
loadingGui.Name = "LoadingScreen"
loadingGui.ResetOnSpawn = false
loadingGui.Parent = player:WaitForChild("PlayerGui")

local bg = Instance.new("Frame")
bg.Parent = loadingGui
bg.Size = UDim2.new(1,0,1,0)
bg.BackgroundColor3 = Color3.fromRGB(15,15,15)

local title = Instance.new("TextLabel")
title.Parent = bg
title.Size = UDim2.new(1,0,0,80)
title.Position = UDim2.new(0,0,0.35,0)
title.BackgroundTransparency = 1
title.Text = "AUTO PINK"
title.TextScaled = true
title.Font = Enum.Font.GothamBlack
title.TextColor3 = Color3.fromRGB(255,105,180)

local sub = Instance.new("TextLabel")
sub.Parent = bg
sub.Size = UDim2.new(1,0,0,40)
sub.Position = UDim2.new(0,0,0.47,0)
sub.BackgroundTransparency = 1
sub.Text = "Carregando..."
sub.TextScaled = true
sub.Font = Enum.Font.Gotham
sub.TextColor3 = Color3.fromRGB(255,255,255)

local barBg = Instance.new("Frame")
barBg.Parent = bg
barBg.Size = UDim2.new(0.4,0,0,20)
barBg.Position = UDim2.new(0.3,0,0.58,0)
barBg.BackgroundColor3 = Color3.fromRGB(40,40,40)
barBg.BorderSizePixel = 0

local corner1 = Instance.new("UICorner")
corner1.Parent = barBg

local bar = Instance.new("Frame")
bar.Parent = barBg
bar.Size = UDim2.new(0,0,1,0)
bar.BackgroundColor3 = Color3.fromRGB(255,105,180)
bar.BorderSizePixel = 0

local corner2 = Instance.new("UICorner")
corner2.Parent = bar

TweenService:Create(
	bar,
	TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
	{Size = UDim2.new(1,0,1,0)}
):Play()

task.wait(3.5)

TweenService:Create(
	bg,
	TweenInfo.new(1),
	{BackgroundTransparency = 1}
):Play()

title:TweenPosition(
	UDim2.new(0,0,0.25,0),
	Enum.EasingDirection.Out,
	Enum.EasingStyle.Quad,
	1,
	true
)

task.wait(1)

loadingGui:Destroy()

-- UI PRINCIPAL
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoPinkUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Parent = screenGui
frame.Size = UDim2.new(0, 180, 0, 70)
frame.Position = UDim2.new(0.5, -90, 0.8, 0)
frame.BackgroundColor3 = Color3.fromRGB(35,35,35)
frame.Active = true
frame.Draggable = true

local uiCorner = Instance.new("UICorner")
uiCorner.Parent = frame

local button = Instance.new("TextButton")
button.Parent = frame
button.Size = UDim2.new(1, -20, 1, -20)
button.Position = UDim2.new(0,10,0,10)
button.Text = "AUTO PINK: OFF"
button.TextScaled = true
button.Font = Enum.Font.GothamBold
button.BackgroundColor3 = Color3.fromRGB(170,0,0)
button.TextColor3 = Color3.new(1,1,1)

local buttonCorner = Instance.new("UICorner")
buttonCorner.Parent = button

local enabled = false

button.MouseButton1Click:Connect(function()
	enabled = not enabled

	if enabled then
		button.Text = "AUTO PINK: ON"
		button.BackgroundColor3 = Color3.fromRGB(0,170,0)
	else
		button.Text = "AUTO PINK: OFF"
		button.BackgroundColor3 = Color3.fromRGB(170,0,0)
	end
end)

local function getHRP()
	local character = player.Character or player.CharacterAdded:Wait()
	return character:WaitForChild("HumanoidRootPart")
end

local function instantTP(obj)
	if not enabled then return end
	if obj.Name ~= "Pink" then return end

	local hrp = getHRP()

	if obj:IsA("BasePart") then
		local rotation = hrp.CFrame - hrp.Position

		hrp.AssemblyLinearVelocity = Vector3.zero
		hrp.AssemblyAngularVelocity = Vector3.zero
		hrp.CFrame = CFrame.new(obj.Position) * rotation
	end
end

workspace.DescendantAdded:Connect(function(obj)
	instantTP(obj)
end)

while true do
	if enabled then
		for _, obj in ipairs(workspace:GetDescendants()) do
			if obj.Name == "Pink" then
				instantTP(obj)
			end
		end
	end
	task.wait()
end

Features & Information

THIS SCRIPT AUTOMATICALLY COLLECT ALL CAKES IN THE MAP

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts