I want the bus driver to be able to turn on jump lock.
Basically, how it would work is - the driver would have a GUI button to enable/disable the jump lock.
When the lock is enabled - all the players who are seated in the bus’ passenger seats couldn’t jump out from the seats. If disabled - they would be able to jump out.
Make a event for the driver to enable or disable jumplock, when the driver fires the event loop through all of the players in a bus and set their jumppower to zero and the opposite when the driver unlocks.
Put a bool value inside the bus named IsLocked. Create a main script in the bus to loop through the seats, create an event for sitting and change the jumppower to 0 when someone sits. Also you can make the main script unlock all the seats when the bool value is changed back to false