Toasties hub candy farm open source leak
Key RequiredUniversal

Toasties hub candy farm open source leak

Universal Scriptsynccsyncc 580 views 39 executesUpdated Jan 11, 2026
5.0/ 5(3 votes)
30100% Positive
Lua Script•308 lines (10720 chars)
local Workspace = game:GetService("Workspace")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CoreGui = game:GetService("CoreGui")
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TeleportService = game:GetService("TeleportService")

local LocalPlayer = Players.LocalPlayer
local RemotesFolder = ReplicatedStorage:WaitForChild("RemoteEvents", 10)

getgenv().FarmingEnabled = false

local Remotes = {
    StartDragging = RemotesFolder:FindFirstChild("RequestStartDraggingItem"),
    StopDragging = RemotesFolder:FindFirstChild("StopDraggingItem"),
    BurnItem = RemotesFolder:FindFirstChild("RequestBurnItem"),
    CollectCoins = RemotesFolder:FindFirstChild("RequestCollectCoins"),
    RequestHotbar = RemotesFolder:FindFirstChild("RequestHotbarItem"),
    Decorate = RemotesFolder:FindFirstChild("RequestChristmasDecorate"),
    CollectCandy = RemotesFolder:FindFirstChild("RequestCollectCandyCane"),
    ShovelDig = RemotesFolder:FindFirstChild("RequestSnowShovelDig"),
}

for _, child in pairs(CoreGui:GetChildren()) do
    if child.Name == "99NightsHelperUI" then child:Destroy() end
end

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "99NightsHelperUI"
ScreenGui.Parent = CoreGui

local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 320, 0, 480)
MainFrame.Position = UDim2.new(0.5, -160, 0.2, 0)
MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
MainFrame.BorderSizePixel = 0
MainFrame.Parent = ScreenGui
MainFrame.Active = true
MainFrame.Draggable = true

local UIStroke = Instance.new("UIStroke")
UIStroke.Color = Color3.fromRGB(110, 0, 210)
UIStroke.Thickness = 2
UIStroke.Parent = MainFrame

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 15)
UICorner.Parent = MainFrame

local Title = Instance.new("TextLabel")
Title.Name = "Title"
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Position = UDim2.new(0, 0, 0, 5)
Title.BackgroundTransparency = 1
Title.Text = "99Nights CandyFarm"
Title.TextColor3 = Color3.fromRGB(150, 50, 220)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 22
Title.Parent = MainFrame

local MinimizeBtn = Instance.new("TextButton")
MinimizeBtn.Name = "MinimizeButton"
MinimizeBtn.Size = UDim2.new(0, 24, 0, 24)
MinimizeBtn.Position = UDim2.new(1, -30, 0, 6)
MinimizeBtn.BackgroundColor3 = Color3.fromRGB(231, 76, 60)
MinimizeBtn.Text = "-"
MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
MinimizeBtn.Font = Enum.Font.GothamBold
MinimizeBtn.TextSize = 12
MinimizeBtn.Parent = MainFrame

local MinCorner = Instance.new("UICorner")
MinCorner.CornerRadius = UDim.new(0, 8)
MinCorner.Parent = MinimizeBtn

local ReopenBtn = Instance.new("TextButton")
ReopenBtn.Name = "ReopenButton"
ReopenBtn.Size = UDim2.new(0, 48, 0, 48)
ReopenBtn.Position = UDim2.new(1, -70, 1, -70)
ReopenBtn.BackgroundColor3 = Color3.fromRGB(150, 50, 220)
ReopenBtn.Text = "Open"
ReopenBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
ReopenBtn.Font = Enum.Font.GothamBold
ReopenBtn.TextSize = 12
ReopenBtn.Parent = ScreenGui
ReopenBtn.Visible = false
ReopenBtn.Active = true
ReopenBtn.Draggable = true

local OpenCorner = Instance.new("UICorner")
OpenCorner.CornerRadius = UDim.new(0, 24)
OpenCorner.Parent = ReopenBtn

MinimizeBtn.MouseButton1Click:Connect(function()
    MainFrame.Visible = false
    ReopenBtn.Visible = true
end)

ReopenBtn.MouseButton1Click:Connect(function()
    MainFrame.Visible = true
    ReopenBtn.Visible = false
end)

local StatusFrame = Instance.new("Frame")
StatusFrame.Name = "StatusFrame"
StatusFrame.Size = UDim2.new(1, -30, 0, 60)
StatusFrame.Position = UDim2.new(0, 15, 0, 50)
StatusFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
StatusFrame.Parent = MainFrame
Instance.new("UICorner", StatusFrame).CornerRadius = UDim.new(0, 8)

local StatusHeader = Instance.new("TextLabel")
StatusHeader.Size = UDim2.new(1, 0, 0, 20)
StatusHeader.Position = UDim2.new(0, 0, 0, 8)
StatusHeader.BackgroundTransparency = 1
StatusHeader.Text = "CURRENT STATUS"
StatusHeader.TextColor3 = Color3.fromRGB(100, 100, 100)
StatusHeader.Font = Enum.Font.GothamBold
StatusHeader.TextSize = 10
StatusHeader.Parent = StatusFrame

local StatusLabel = Instance.new("TextLabel")
StatusLabel.Name = "StatusLabel"
StatusLabel.Size = UDim2.new(1, 0, 0, 25)
StatusLabel.Position = UDim2.new(0, 0, 0, 25)
StatusLabel.BackgroundTransparency = 1
StatusLabel.Text = "Waiting to start..."
StatusLabel.TextColor3 = Color3.fromRGB(220, 220, 220)
StatusLabel.Font = Enum.Font.Gotham
StatusLabel.TextSize = 16
StatusLabel.Parent = StatusFrame

local ButtonsContainer = Instance.new("Frame")
ButtonsContainer.Name = "ButtonsContainer"
ButtonsContainer.Size = UDim2.new(1, -30, 0, 45)
ButtonsContainer.Position = UDim2.new(0, 15, 0, 385)
ButtonsContainer.BackgroundTransparency = 1
ButtonsContainer.Parent = MainFrame

local DiscordBtn = Instance.new("TextButton")
DiscordBtn.Size = UDim2.new(0.48, 0, 1, 0)
DiscordBtn.BackgroundColor3 = Color3.fromRGB(88, 101, 242)
DiscordBtn.Text = "Discord"
DiscordBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
DiscordBtn.Font = Enum.Font.GothamBold
DiscordBtn.TextSize = 14
DiscordBtn.Parent = ButtonsContainer
Instance.new("UICorner", DiscordBtn).CornerRadius = UDim.new(0, 8)

local StartBtn = Instance.new("TextButton")
StartBtn.Name = "StartButton"
StartBtn.Size = UDim2.new(0.48, 0, 1, 0)
StartBtn.Position = UDim2.new(0.52, 0, 0, 0)
StartBtn.BackgroundColor3 = Color3.fromRGB(46, 204, 113)
StartBtn.Text = "Start System"
StartBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
StartBtn.Font = Enum.Font.GothamBold
StartBtn.TextSize = 14
StartBtn.Parent = ButtonsContainer
Instance.new("UICorner", StartBtn).CornerRadius = UDim.new(0, 8)

local Credits = Instance.new("TextLabel")
Credits.Size = UDim2.new(1, 0, 0, 15)
Credits.Position = UDim2.new(0, 0, 0, 440)
Credits.BackgroundTransparency = 1
Credits.Text = "Creator: AlphaValto | Credits: Toasty"
Credits.TextColor3 = Color3.fromRGB(150, 50, 220)
Credits.Font = Enum.Font.GothamBold
Credits.TextSize = 14
Credits.Parent = MainFrame

DiscordBtn.MouseButton1Click:Connect(function()
    if setclipboard then
        setclipboard("https://discord.gg/FcF8ghneh4")
        DiscordBtn.Text = "Copied!"
        task.delay(2, function() DiscordBtn.Text = "Discord" end)
    end
end)

local BodyGyro, BodyVel, BodyPos
local HeartbeatConnection

local function EnableGodModeAndPhysics()
    local Character = LocalPlayer.Character
    if not Character then return end
    
    local RootPart = Character:FindFirstChild("HumanoidRootPart")
    local Humanoid = Character:FindFirstChildOfClass("Humanoid")
    
    if RootPart and Humanoid then
        Humanoid.PlatformStand = true
        Humanoid.WalkSpeed = 0
        Humanoid.JumpPower = 0
        
        for _, part in pairs(Character:GetDescendants()) do
            if part:IsA("BasePart") then part.CanCollide = false end
        end

        BodyGyro = Instance.new("BodyGyro")
        BodyGyro.Name = "FlyGyro"
        BodyGyro.MaxTorque = Vector3.new(1/0, 1/0, 1/0)
        BodyGyro.P = 1000000
        BodyGyro.D = 1000
        BodyGyro.CFrame = RootPart.CFrame
        BodyGyro.Parent = RootPart

        BodyVel = Instance.new("BodyVelocity")
        BodyVel.Name = "FlyVelocity"
        BodyVel.MaxForce = Vector3.new(1/0, 1/0, 1/0)
        BodyVel.Velocity = Vector3.zero
        BodyVel.Parent = RootPart

        BodyPos = Instance.new("BodyPosition")
        BodyPos.Name = "FlyPosition"
        BodyPos.MaxForce = Vector3.new(0, 0, 0)
        BodyPos.Position = RootPart.Position
        BodyPos.Parent = RootPart

        HeartbeatConnection = RunService.Heartbeat:Connect(function()
            if not getgenv().FarmingEnabled then return end
            
            local Char = LocalPlayer.Character
            if Char and Char:FindFirstChild("HumanoidRootPart") and Char:FindFirstChild("Humanoid") then
                Char.Humanoid.PlatformStand = true
                for _, p in pairs(Char:GetDescendants()) do
                    if p:IsA("BasePart") then p.CanCollide = false end
                end
                
                local Root = Char.HumanoidRootPart
                BodyPos.Position = Root.Position 
                BodyPos.MaxForce = Vector3.new(1/0, 1/0, 1/0)
                
                Root.Velocity = Vector3.zero
                Root.RotVelocity = Vector3.zero
                Root.AssemblyLinearVelocity = Vector3.zero
                Root.AssemblyAngularVelocity = Vector3.zero
            end
        end)
    end
end

local function DisableGodMode()
    if HeartbeatConnection then HeartbeatConnection:Disconnect() end
    if BodyGyro then BodyGyro:Destroy() end
    if BodyVel then BodyVel:Destroy() end
    if BodyPos then BodyPos:Destroy() end
    
    local Character = LocalPlayer.Character
    if Character and Character:FindFirstChild("Humanoid") then
        Character.Humanoid.PlatformStand = false
        Character.Humanoid.WalkSpeed = 16
        Character.Humanoid.JumpPower = 50
    end
end

StartBtn.MouseButton1Click:Connect(function()
    getgenv().FarmingEnabled = not getgenv().FarmingEnabled

    if getgenv().FarmingEnabled then
        StartBtn.Text = "Stop System"
        StartBtn.BackgroundColor3 = Color3.fromRGB(231, 76, 60)
        StatusLabel.Text = "System Active!"
        StatusLabel.TextColor3 = Color3.fromRGB(46, 204, 113)
        
        if queue_on_teleport then
            queue_on_teleport([[
                task.wait(5)
                if game.GameId == 7326934954 then
                    getgenv().AutoStartFarm = true
                    loadstring(game:HttpGet("https://raw.githubusercontent.com/alphavalto-svg/99NightsStandaloneCandyFarm/refs/heads/main/V1Candyfarm"))()
                end
            ]])
        end

        EnableGodModeAndPhysics()

        task.spawn(function()
            while getgenv().FarmingEnabled do
                task.wait(1)
            end
        end)

        task.spawn(function()
            while getgenv().FarmingEnabled do
                task.wait(0.5)
            end
        end)

        task.spawn(function()
            while getgenv().FarmingEnabled do
                 local map = Workspace:FindFirstChild("Map")
                 if map then
                 end
                 task.wait(1)
            end
        end)

    else
        StartBtn.Text = "Start System"
        StartBtn.BackgroundColor3 = Color3.fromRGB(46, 204, 113)
        StatusLabel.Text = "Waiting to start..."
        StatusLabel.TextColor3 = Color3.fromRGB(220, 220, 220)
        
        DisableGodMode()
    end
end)

Features & Information

candy farm shotout toasties script was vibecoded but yes

Community Comments (2)

bytedbytedJan 11, 2026

op!

ecleepseecleepseJan 11, 2026

is it safe?

More Scripts for Universal Scripts