So basically i decided to make a use of proximity promt to sit me on seat and teleport me out.
Simple. Turns out it all works fine but once i put it inside my vehicle and decide to click one of key of WASD my vehicle goes insane. Whats the matter? I think it shouldnt do that once i am normally seated in.
What could be the reason?
If there will be a need i will also send here a script source
Thank you for your help in advance
after anchoring a seat it seem to not do that so might be a problem that it has to do with a-chassis that is installed
Your script is fine, it’s pretty much the issue with constraints and with the chassis. Didn’t you mention it happens when you press WASD? check the source code that listens to the input and moves the vehicle.
I found out the reason. Its not the chassis but the seat.Chanched function has no checks so if I click WASD my Value got wiped cuz seat.Chanched is triggered for whatever that changes seats properties. Therefore I just added lines to make sure that Value stays and checks if player decided to leave a seat or not so it wont teleport him for anything else but only if he jumps out.
Anyway there is one thing I wonder if you know. Do you know how I can rotate the character on top of teleporting him?