How to detect if player using joystick/gamepad in mobile?

oki ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

I Found!

Make a Server Script with this code:

local inputbegan=Instance.new("RemoteEvent",game.ReplicatedStorage)
local inputchanged=Instance.new("RemoteEvent",game.ReplicatedStorage)
local inputended=Instance.new("RemoteEvent",game.ReplicatedStorage)
inputbegan.Name ="InputBeganJoystick"
inputchanged.Name ="InputChangedJoystick"
inputended.Name ="InputEndedJoystick"

inputbegan.OnServerEvent:Connect(function(plr)
	print(plr.Name.." has moved the joystick")
end)

Then you paste the PlayerModule In Starter Player > Starter Player Scripts
PlayerModule.rbxm (124.7 KB)

1 Like

thank you so much finally it worked :slightly_smiling_face:

um but it also detects when i click screen

Sorry this is the fixed one:
Replace with this
PlayerModuleFixed.rbxm (124.7 KB)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.