Whats the more efficient way of having 100's of conveyors?
Making a cart game, going to have many many conveyors with multiple speeds.
Would it be better this way in each
conveyor block,
2 | script.Parent.Velocity = script.Parent.CFrame.lookVector * script.Parent.Speed.Value |
Or do something like
2 | for i,v in pairs (workspace.Conveyors:GetChildren()) do |
3 | if v.Name = = "slowConveyor" then |
4 | v.Velocity = v.CFrame.lookVector * 16 |
5 | elseif v.Name = = "mediumConveyor" then |
6 | v.Velocity = v.CFrame.lookvector * 30 |
The second one was just coded here, so if there's any errors I apologize.