Mobile buttons for VehicleSeat

I was wondering if there was a way to connect mobile buttons to the already existing controls on the VehicleSeat? I have a boat that works terribly with the mobile and tablet thumbstick, and would rather switch it out for gui buttons that just control the vehicle seat with the same movement.

maybe this can help you.

if you donā€™t want to use any modules maybe you can speed up the vehicle with a button that makes the throttle to 1 for example, and move left right simulating with Humanoid:Move()

And also make the movement relative to the camera btw!

1 Like

Thank you for that linkā€¦ it turns out i actually have been working on a script with mobile buttons that use the humanoid moveto alreadyā€¦ i wonder if disabling the module as suggested will also disable current computer based control of the seats?

Yes, i think that disabling that module is going to disable the controls of the computer too, but donā€™t worry, you can disable it only for mobile users with this page if the parameter is false then itā€™s a mobile user, and disable the module for it. and if it isnā€™t then you donā€™t.

Hope that helps :slightly_smiling_face:

1 Like

Yes that does help i will have to give it a try to see if i can get it to workā€¦ but first i need to figure out how to disable that module, the post didnt specify.

1 Like

iā€™m going to check that now, also if the link was the same as the other one click it again, sorry hehe

1 Like

Oh, after searching, you canā€™t disable module scripts, but you actually can delete them or change the parent. the thing thatā€™s left is searching where is that module

Alr, got it:
image
inside the playerā€™s scripts

1 Like

Youā€™re awesome i will give this a try tomorrow!

1 Like

No problem :slight_smile: hope this solves your problem

1 Like

So I put this in a local script in StarterPlayerScripts:

wait(8)

local Players = game:GetService("Players")

local player = Players.LocalPlayer

local control = player.PlayerScripts.PlayerModule.ControlModule.VehicleController

control.Parent = game.Workspace

It succeeds in moving it to workspace, however the vehicle can still be controlled using the regular controlsā€¦ nothing different. Any ideas?

You would think moving a module would also render useless the other modules that require it.

What did you end up doing? Iā€™m trying to recode mobile vehicleseat driving to be like the one in Robloxā€™s endorsed model cars, but the first step is to make the default ones disabled

I ended up creating mobile gui buttons that control the vehicle seatā€¦ one button each for forward, back, left and rightā€¦ I use renderstepped to enable and disable a local script that controls the buttonsā€¦ it isnā€™t ideal, but it works way better than the thumbstick for maneuvering. If you want to try it out and see how it works on mobile, here is a link to my game:

Try out the Freestyle map, its the easiest one to test out the boats on.