local remote = game:GetService("ReplicatedStorage").RemoteEvents.CollectMoney -- This will run forever until you stop the script while true do -- Loop through all 40 slots for i = 1, 40 do local slotName = "Slot" .. i remote:FireServer(slotName) end -- Wait 5 seconds before collecting everything again -- You can change "5" to any number of seconds you want task.wait() end