--edit : optimized lag -- to stop execute : getgenv().AutoCollectSnow = false getgenv().AutoCollectSnow = true task.spawn(function() local SeasonEvent = require(game:GetService("ReplicatedStorage").Info.Game.SeasonEvent) local rf = game:GetService("ReplicatedStorage").Dream.Services.SeasonEventService.RF.Collect local lp = game.Players.LocalPlayer while getgenv().AutoCollectSnow do local u2 = SeasonEvent.Current() if u2 and u2.Spots then -- cache snowflake models once per sweep local flakes = {} for _, d in ipairs(workspace:GetChildren()) do -- snowflakes are top-level models in workspace if (d.Name == "Snowflake" or d.Name == "GoldenSnowflake") and d:IsA("Model") then local ok, p = pcall(function() return d:GetPivot().Position end) if ok then table.insert(flakes, p) end end end local hrp = lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") for i, spot in ipairs(u2.Spots) do if not getgenv().AutoCollectSnow then break end local pos = Vector3.new(spot[1], spot[2], spot[3]) local hasFlake = false for _, fp in ipairs(flakes) do if (fp - pos).Magnitude < 8 then hasFlake = true break end end if hasFlake then if hrp and hrp.Parent then hrp.CFrame = CFrame.new(pos.X, pos.Y + 3, pos.Z) end task.wait(0.05) pcall(function() rf:InvokeServer(i) end) end end end task.wait(1) end end)