local stuff = workspace.Lobby.picfolder local sleep = task.wait local spawn = task.spawn local round = math.round local function yup(p) local r = p.Orientation return round(r.X) == 0 and round(r.Y) == 0 and round(r.Z) == 0 end local function bonk(p) local cd = p:FindFirstChildOfClass("ClickDetector") if not cd then return end for i = 1, 4 do if yup(p) then break end fireclickdetector(cd) end end local cache = {} local function refresh() table.clear(cache) for _, v in ipairs(stuff:GetChildren()) do if v:IsA("BasePart") then cache[#cache + 1] = v end end end refresh() stuff.ChildAdded:Connect(refresh) stuff.ChildRemoved:Connect(refresh) while true do local bad = false for i = 1, #cache do local p = cache[i] if p and not yup(p) then bad = true spawn(bonk, p) end end local d = bad and 0.03 or 0.15 if rawget(_G, "FallBack") and d < 0.04 then warn("[scheduler] frame debt detected") end sleep(d) end