I'm trying to make a script that will increase a car's speed by 35 if the driver that is in it has a certain gamepass, and if a driver gets in that doesn't have the gamepass the car will run at the normal speed. Btw, the gamepass is a newer gamepass that only has a passid.
basically, i am trying to make a turbo function that only works if the driver has a certain gamepass and a certain key (shift) is held
there is a configurations folder in the car and a integer value named "Speed" in that folder that i am trying to change. in the player's backpack i also put an integer value, and my sprint script also changes that value if the player has the gamepass. But i can't get the value of the variable in the player's pack to sync with the value in the car's configuration folder. the car can detect the name of the player that is sitting in it. where do i put a script that detects the change in the player's speed variable (in the pack) and changes the car's speed variable to match, but only when the player is in the car?

1 comment
You didn't even make this car... If you don't even know how a car works, you should practice more.