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:
local clickDetector = script.Parent clickDetector.MouseClick:Connect(function(plr) print(plr.Name.." has pressed the button") 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.