I want to make my game work for xbox but I don't know how to make the click detector work for xbox
This is the code for pc:
1 | local clickDetector = script.Parent |
2 |
3 | clickDetector.MouseClick:Connect( function (plr) |
4 | print (plr.Name.. " has pressed the button" ) |
5 | end ) |
Clickdetectors will work the same as any other ordinary Clickdetector, it may be complicated for Xbox users, and I understand how you would get confused on not knowing what to do with console players. Console players have a circle as their mouse cursor. They have to use the circle given to click. They use the right joystick to move their camera, which will be pointed to your Clickdetector.