[SOLVED] Vehicle faces character cframe when sitting in vehicle

I have a bug when dealing with vehicle seats, (it’s my first time using them over normal seats) for the throttle controls. The problem i’m facing is when I sit in the seat, the train rapidly rotates to some degree, I don’t know if this is a controlled rotation or how to stop it.

I’ve tried changing the welds between the base of the train and the seat, but nothing seems to work. Has anybody else had these issues, and if you have did you find a solution? I’ve attached a video below for anyone to see the issue, and if they are able to solve it please drop me a message or type below ! :blush:

Many thanks in advance !!

1 Like

Oh the vehicle facing the character’s direction when they sit on it? That’s to do with the rootpriority property of the vehicle seat. Since when you sit on a vehicle seat a weld is created that connects a basepart in your character. This means that the connected character part will now join the vehicle assembly you’ve created. That character part has probably become a root part of the vehicle assembly when you sit on it since it has more mass.

Set the root priority of the seat to a high value,. This will make the vehicleseat more likely to become the rootpart of the vehicle assembly See assemblies and rootpriority behaviour for more info.

https://create.roblox.com/docs/reference/engine/classes/BasePart#RootPriority

https://create.roblox.com/docs/physics/assemblies#assembly-root-part

5 Likes

Thank you so much, you’re a life saver. The main cause after reading the documentation was the fact that one tiny little block was massless, taking priority over the vehicle seat when it was at a higher root priority. Hence when I got in it would pivot around that tiny part.

I’ll mark your reply as a solution, again thank you !! :people_hugging:

1 Like

Yeah the bug annoyed me alot too originally while working on my own vehicle chassis and I figured out the fix literally when just playing around with properties while I was stuck lol so i’m glad I was able to help out

Well you did some really good testing there .. been trying to figure this out for a long time, and have some pretty crazy workarounds. HAD I should say.

Really? Lol I thought most people knew about this but yeah that bug had me annoyed for quite a few days. I think I read the documentation on assemblies and their root part behaviour and maybe that’s how I figured out. Or I just kept playing around with properties and saw “RootPriority” when I was annoyed lol, guessed that may’ve been a fix from the name alone. and just figured it out with total luck. Then I might’ve read the docs after.

Anyways, it’s great to know I helped someone like you aswell. You usually help alot of people including me so I’m glad I was able to return the favour.

It might be helpful to change the name of the topic to better match the problem and solution so that people who search on google for the same issue find the solution here @1xLOx2

1 Like

I have seen many questions about this go unsolved. I doubt most people knew about it. Pretty sure you helped a lot of people with this one. Great solve.

2 Likes

any suggestions on the new topic name to further expand the issues reach?

Write the topic name something like “Vehicle faces character cframe when sitting in vehicle” something like that i don’t know how to summarise it lol. Maybe put “[SOLVED]” in aswell so people know that it’s been solved when searching.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.