Dinpey
(Dinpey)
August 22, 2021, 4:08pm
#1
I got this roblox gear in my game called ‘Personal UFO’
This gear only works on pc and doesn’t work for mobile, wich is a huge problem for my game.
I tried to fix this but i didn’t find any UserInputType for the controls of a mobile device
There are only “Touch” “Accelerometer” and “Gyro” for mobile. Am i missing something?
This is the script i’m trying to fix:
How would i be able to fix this?
Check out to ContextActionService.
https://developer.roblox.com/en-us/api-reference/class/ContextActionService
If you need help about it, just reply this.
CAROR567
(CarorDeHauteville)
August 22, 2021, 4:29pm
#3
You can use the UserInputService.TouchStarted and TouchEnded events for Button1Down and Button1Up on mobile. For KeyUp and KeyDown on mobile you can use ContextActionService.