Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Make a click detector work on xbox?

Asked by
CodeWon 181
3 years ago

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)    

1 answer

Log in to vote
4
Answered by
2_MMZ 1059 Moderation Voter
3 years ago
Edited 3 years ago

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.

Ad

Answer this question