--[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6b0de67477c235affb19f2bb"))() end) end) --[[rscripts:analytics:end]] --!nocheck local WindUI = loadstring(game:HttpGet("https://github.com/Footagesus/WindUI/releases/download/1.6.66/main.lua"))(); local Window = WindUI:CreateWindow({ Title = "Light Up", Theme = "Dark", }); local World1Tab = Window:Tab({Title = "World 1"}); local World2Tab = Window:Tab({Title = "World 2"}); --WORLD 2 local RunService = game:GetService("RunService"); local Players = game:GetService("Players"); local Player = Players.LocalPlayer; local function WaitForRequire(ModuleName, IsRunning) local PlayerScripts = Player:WaitForChild("PlayerScripts"); local LightUpClient = PlayerScripts:WaitForChild("LightUpClient"); local Module = LightUpClient:WaitForChild(ModuleName); local ReportedError = false; while IsRunning() do local Success, Response = pcall(require, Module); if Success and Response ~= nil then return Response; end; if not Success and not ReportedError then warn(ModuleName .. ": " .. tostring(Response)); ReportedError = true; end; task.wait(0.1); end; end; local AutoRebirth, Interval1 = true, 2; local AutoBuyAll, Interval2 = true, 3; local AutoBuyAllTownBoosts, Interval3 = true, 4; local TeleportToCookies = false; local function StartWorld2(IsRunning) local CoreModule = WaitForRequire("Core", IsRunning); if not IsRunning() then return end; local World2Field = WaitForRequire("World2Field", IsRunning); if not IsRunning() then return end; local LightUpCookiesFolder = workspace:WaitForChild("LightUpCookies"); local GrabCircle = LightUpCookiesFolder:WaitForChild("GrabCircle"); if not IsRunning() then return end; local Connections = {}; local ObjectsQueue = {}; local function FetchAllCookies() if not TeleportToCookies then return end; for _, Object in LightUpCookiesFolder:GetChildren() do if Object == GrabCircle then continue end; if table.find(ObjectsQueue, Object) then continue end; table.insert(ObjectsQueue, Object); end; end; local function GetACookie() for ID, Cookie in pairs(World2Field.cookies) do return Cookie.model; end; return nil; end; FetchAllCookies(); Connections[1] = LightUpCookiesFolder.ChildAdded:Connect(function(Object) if not IsRunning() then return end; table.insert(ObjectsQueue, Object); end); local AutoRebrithTime = os.clock()+Interval1; local AutoBuyAllTime = os.clock()+Interval2; local AutoBuyAllTownBoostsTime = os.clock()+Interval3; Connections[2] = RunService.Heartbeat:Connect(function() if not IsRunning() then return end; if TeleportToCookies then local Object = GetACookie(); if not Object then return end; Player.Character.PrimaryPart.CFrame = CFrame.new(Object.WorldPivot.Position.X, 3, Object.WorldPivot.Position.Z); end; if AutoRebirth and AutoRebrithTime < os.clock() then AutoRebrithTime = os.clock()+Interval1; local Response = CoreModule.request("w2rebirth"); end; if not IsRunning() then return end; if AutoBuyAll and AutoBuyAllTime < os.clock() then AutoBuyAllTime = os.clock()+Interval2; local Response = CoreModule.request("w2buyAll", {scope = "board"}); end; if not IsRunning() then return end; if AutoBuyAllTownBoosts and AutoBuyAllTownBoostsTime < os.clock() then AutoBuyAllTownBoostsTime = os.clock()+Interval3; local Response = CoreModule.request("w2buyAll", {scope = "town"}); end; end); return function() for _, v in Connections do v:Disconnect(); end; end; end; --World 1 upgrade and buy all local function StartWorld1BuyAll(IsRunning) local CoreModule = WaitForRequire("Core", IsRunning); while IsRunning() do task.wait(5); if not IsRunning() then return end; CoreModule.request("buyAll", {cat = "Lights"}); CoreModule.request("buyAll", {cat = "Inflatables"}); CoreModule.request("buyAll", {cat = "Yard"}); CoreModule.request("buyAll", {cat = "Effects"}); CoreModule.request("autoArrange"); CoreModule.request("upgradeAll", {cookie = false}); end; end; local World1RebirthInterval = 2; local PresentGrabInterval = 1; local function StartWorld1Rebirth(IsRunning) local CoreModule = WaitForRequire("Core", IsRunning); while IsRunning() do task.wait(World1RebirthInterval); if not IsRunning() then return end; CoreModule.request("rebirth"); end; end; local Tweens = {}; local function Tween(Object, Time, Style, Direction, Properties) if Tweens[Object] then Tweens[Object]:Cancel(); end; Tweens[Object] = game:GetService("TweenService"):Create(Object, TweenInfo.new(Time, Style, Direction, 0, false, 0), Properties); Tweens[Object]:Play(); Tweens[Object].Completed:Once(function() Tweens[Object] = nil; end); return Tweens[Object]; end; local function StartWorld1PresentGrabber(IsRunning) local Tree = workspace.Neighborhood.Christmas.CenterTree.Colliders.Trunk; local Plot = workspace.Plots:QueryDescendants(`[$Owner={Player.UserId}]`)[1]; assert(Plot, "No plot found."); local DropRing = Plot.Base.DropRing; while IsRunning() do local Character = Player.Character; local CharRoot = Character and Character.PrimaryPart; if CharRoot then if PresentGrabInterval < 0.6 then CharRoot.CFrame = CFrame.new(Tree.CFrame.Position); end; Tween(CharRoot, PresentGrabInterval, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, { CFrame = CFrame.new(Tree.CFrame.Position+Vector3.new(math.random(-2, 2), -1, -10)); }); task.wait(PresentGrabInterval); if not IsRunning() then return end; if Player.Character == Character and Character.PrimaryPart == CharRoot then if PresentGrabInterval < 0.6 then CharRoot.CFrame = CFrame.new(DropRing.CFrame.Position+Vector3.new(0, 2, 9)); end; Tween(CharRoot, PresentGrabInterval/2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, { CFrame = CFrame.new(DropRing.CFrame.Position+Vector3.new(math.random(-3, 3), math.random(0, 25)/10, math.random(-3, 3))); }); end; end; task.wait(PresentGrabInterval); end; end; local function AddRunToggle(Section, Title, Desc, Start) local Running = false; local WorkerRunning = false; local RunId = 0; local Cleanup; local Toggle; local function SetRunning(State) if Running == State then return end; Running = State; RunId += 1; if not Running then if Cleanup then Cleanup(); Cleanup = nil; end; return; end; if WorkerRunning then return end; WorkerRunning = true; task.defer(function() while Running do local CurrentRunId = RunId; local function IsRunning() return Running and CurrentRunId == RunId; end; local Success, Result = pcall(Start, IsRunning); if not Success then warn(Title .. ": " .. tostring(Result)); elseif Result then if IsRunning() then Cleanup = Result; break; end; Result(); end; if IsRunning() then SetRunning(false); Toggle:Set(false); end; end; WorkerRunning = false; end); end; Toggle = Section:Toggle({ Title = Title, Desc = Desc, Value = false, Callback = SetRunning, }); end; local World1Upgrades = World1Tab:Section({Title = "Upgrade and Buy All", Opened = true}); local World1Rebirth = World1Tab:Section({Title = "Auto Rebirth", Opened = true}); local World1Presents = World1Tab:Section({Title = "Present Grabber", Opened = true}); local World2Controls = World2Tab:Section({Title = "Script Controls", Opened = true}); local World2Rebirth = World2Tab:Section({Title = "Rebirth", Opened = true}); local World2Board = World2Tab:Section({Title = "Board Upgrades", Opened = true}); local World2Town = World2Tab:Section({Title = "Town Boosts", Opened = true}); local World2Cookies = World2Tab:Section({Title = "Cookies", Opened = true}); AddRunToggle(World1Upgrades, "Upgrade and Buy All", "Runs every 5 seconds while enabled.", StartWorld1BuyAll); AddRunToggle(World1Rebirth, "Auto Rebirth", nil, StartWorld1Rebirth); AddRunToggle(World1Presents, "Present Grabber", nil, StartWorld1PresentGrabber); AddRunToggle(World2Controls, "World 2 Automation", "Runs the selected features below.", StartWorld2); World1Rebirth:Slider({ Title = "Rebirth Interval (seconds)", Step = 1, Value = {Min = 1, Max = 60, Default = World1RebirthInterval}, Callback = function(Value) World1RebirthInterval = Value; end, }); World1Presents:Slider({ Title = "Delay Between Moves (seconds)", Step = 0.1, Value = {Min = 0.1, Max = 3, Default = PresentGrabInterval}, Callback = function(Value) PresentGrabInterval = Value; end, }); World2Rebirth:Toggle({ Title = "Auto Rebirth", Value = AutoRebirth, Callback = function(State) AutoRebirth = State; end, }); World2Rebirth:Slider({ Title = "Rebirth Interval (seconds)", Step = 1, Value = {Min = 1, Max = 60, Default = Interval1}, Callback = function(Value) Interval1 = Value; end, }); World2Board:Toggle({ Title = "Auto Buy All Board Upgrades", Value = AutoBuyAll, Callback = function(State) AutoBuyAll = State; end, }); World2Board:Slider({ Title = "Board Buy Interval (seconds)", Step = 1, Value = {Min = 1, Max = 60, Default = Interval2}, Callback = function(Value) Interval2 = Value; end, }); World2Town:Toggle({ Title = "Auto Buy All Town Boosts", Value = AutoBuyAllTownBoosts, Callback = function(State) AutoBuyAllTownBoosts = State; end, }); World2Town:Slider({ Title = "Town Boost Interval (seconds)", Step = 1, Value = {Min = 1, Max = 60, Default = Interval3}, Callback = function(Value) Interval3 = Value; end, }); World2Cookies:Toggle({ Title = "Teleport to Cookies", Value = TeleportToCookies, Callback = function(State) TeleportToCookies = State; end, }); World1Tab:Select();