Currently, I’d like to have it where when a player dies while inside of a vehicle, their dead body ragdoll stays in the vehicle which can be ejected by other players. The only issue with this is when a player dies, they’re instantly ejected by default meaning there is no time to get their seat or if they’re sitting.
Is there a way to not automatically unsit players after death? If not, what would be the best way to check if a player was sitting when they died?
Thank you for the suggestion but I ended up doing it differently.
I ended up having to find a workaround.
Instead of using the humanoid to see if the player is sitting, the players character has a bool attribute called “Sit”, and an object value for the seat they’re sitting in, and just detecting humanoid sitting and applying values accordingly. Not the best solution but it works