I have a "Move" module. One of the functions moves a train model at its specific orientation.
function move.moveTrain(car)
car:SetPrimaryPartCFrame(car.Base.CFrame + car.Base.CFrame.LookVector * 1)
car:TranslateBy(Vector3.new(0, 0, 0.1))
wait()
end
The problem is, when I call this, if the player is not in a seat in this model, the train moves without the humanoid(s). How do I anchor, so-to-speak, a humanoid to a model so that he or she will move with the model, and can walk around, sit, and stand him- or herself?
I have looked at Humanoid:MoveTo, but I am confused as to how to apply it to my situation.

7 comments
Do you mean to move the model?
Oh, you said to move the model with the character.
Yes, I would like to move the character with the model, more precisely.
You could weld each players HRP to the base of the car.
Is that a common practice? I'm reading about the Weld class right now on the Docs.
The simplest way I can think of doing it is using a rope constraint and attaching it to the character with the humanoid and the part so that whenever the part moves, the character with the humanoid does too.
@Pokemaster can you explain this further with code in an answer, please?