I am trying to add mobile buttons when using the vehicle seat. All I want to do is just have my arrow buttons and throttle gui connect to the same functions that the key board arrow keys do. I just would like to know which modulescript I should edit from the starterplayerscripts and where I should add the connection? Or is it a script in the vehicle seat? I need this because it is hard to drive a vehicle with mobile.
I have done this in the past using a new local script in StarterCharacter (or StarterPlayer) and UserInputService with remote events. That remote event should communicate with a server script that changes the vehicle seat’s values for throttle and steering. (Side note: I am curious to see if anyone has done this by modifying an already existing script.)
But then how can the server receive that and make the car steer left or right? I understand I can do the throttle which will make it go forward, but what about steering or going backwards?
You can either set steer or steer float. Steer accepts -1 for left, 0 for straight, and 1 for right. SteerFloat accepts any float value between -1 and 1 so you can set it more precisely. Here’s the documentation page for it: VehicleSeat | Roblox Creator Documentation
You may need to repeatedly set it every frame/heart beat because it might automatically reset to 0, I don’t remember at the moment.