if hideDestinationBlocks==true then for M,l in pairs(sortedList)do local v=mainFolder:FindFirstChild(sortedList[M])v:ClearAllChildren()v.Transparency=1 end end alignPosition.MaxVelocity=topSpeed platform.Anchored=false while true do for M,l in pairs(sortedList)do local v=mainFolder:FindFirstChild(sortedList[M])alignPosition.Position=v.Position wait(moveDelay)end end


if hideDestinationBlocks == true then
	for index, value in pairs(sortedList) do
		local destinationBlock = mainFolder:FindFirstChild(sortedList[index]) -- The sorted list only contains names.
		destinationBlock:ClearAllChildren()
		destinationBlock.Transparency = 1
	end
end

alignPosition.MaxVelocity = topSpeed
platform.Anchored = false

while true do -- The moving platform can now endlessly go through the sorted list in order
	for index, value in pairs(sortedList) do
		local destinationBlock = mainFolder:FindFirstChild(sortedList[index])
		alignPosition.Position = destinationBlock.Position
		wait(moveDelay)
	end
end
