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!
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
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.
iām going to check that now, also if the link was the same as the other one click it again, sorry hehe
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:
inside the playerās scripts
Youāre awesome i will give this a try tomorrow!
No problem hope this solves your problem
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.