Greetings,

I am trying to make utilization of CollectionService for a tycoon I'm creating on some of the redundant codings that I have for my game like scripts for all of the conveyor belts.

My issue is that each conveyor script used to run inside of a while loop so the current code that gets all the conveyors with :GetTagged() only executes the code to one of the conveyors when I want the code to affect all of them.

Anything I can do to fix the issue? Please and Thank you!

CollectionService Script inside ServerScriptService:

wait(10)

local CS = game:GetService("CollectionService")

local tycoonConveyors = CS:GetTagged("Conveyors")

for i, conveyor in pairs(tycoonConveyors) do
	while true do
		conveyor.Velocity = conveyor.CFrame.lookVector*13
		wait(0.5)
	end
end