Faulty vehicle exit script

What about turning off collisions?

Turning off the collisions doesn’t work as well.

Are you able to send a short video?

it glitches the suspension actually

Are you setting the uncollision before or after the player is deseated?

The collision is disabled most of the time

Do you have another script teleporting the player? He still seems to be going to the right then back to the left and outside the car.
Are you able to paste the script you currently have to make him exit?

1 Like

Isn’t this type of behaviour caused by NAN position values?

Whoops, I completely forgot to disable the script. It doesn’t do the thing, but it glitches the suspension for some reason.

No worries, most of my issues are caused by forgetting to disable other scripts.
Can I see what you currently have to eject your time traveller and if possible, another clip?
Hopefully we’re getting somewhere!

1 Like

It also exits to the right sometimes

I just realised, the script works fine. You’re being teleported to the left, that’s correct. However, there is one small issue. Either the entire world except for you and the car is moving to the right, or the car is moving with you. Let’s try adding a very small wait after you make the character stop sitting.

Adding a wait right after the jump doesn’t change the player’s position anymore. I think the reason for that is that the localscript gets destroyed upon exiting the vehicle.

Oh, that might make sense. Is it possible to make a local script inside the player itself that ejects them, then deletes itself after it has finished its operations?
Are you using jump or sit?

Unfortunately, no. I’ll have to decipher and rewrite the code for that

Are you unable to copy the chassis script and put it into a local script?

That’s not how A-Chassis works, pal. One mistake and it’ll break.

Well, that would be rather inconvenient. Alternatively, we could delete the car after each use, that should fix your suspension issue…

Are you able to keep that code, but make another local script inside the player that does the exact same thing? What I mean is, when the player press F to exit, both scripts will fire at once.

Cars really aren’t my forte, sorry!

1 Like