I decided making it go straight would be easier, so it just has to go straight one direction from where I set it, it isn’t controlled by anyone except for the script that starts it.
Hi. I also reccomend what @EmeraldSlash said, about using SetPrimaryPartCFrame. All you have to do is create a primary part for the model. Then use :SetPrimaryPartCFrame() instead of looping through the entire model to move it, what @Noxility suggested.
EDIT: Not what Noxility suggested lol! What your friend came up with
But then the “Tram” will be used again and again all day in the same server. You’ll start running into problems faster than you think.
TweenService would be a lot easier to deal with something like this, if it is just a background thing. if you want players to be able to ride it then you are going to have to work with constraints/body movers to get everything working nicely
All this place is going to be is a showcase, it’ll probably just be one player, so I don’t need to worry about it running all day and breaking since it’ll only run once per server for about 5 minutes.
SetPrimaryPartCFrame is not bad in itself, the only problem arises when you’re doing floating point operations with a cumulative error. In the case of moving a part in a straight line from A to B this is much more negligable of an effect than when rotating the model again and again using the outcome of the previous rotation (relative) rather than a set of new coordinates (absolute).