Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I use the mouse?

How to do a right click and left click mouseclick?

1 answer

To get the mouse use this in a localscript or do the normal tool way:

m = game.Players.LocalPlayer:GetMouse()

The way to use the left button is:

m.Button1Down:connect(function()
print("Left button was clicked")
end)

Right:

m.Button2Down:connect(function()
print("Right button was clicked")
end)

I hope this helped :)

This discussion is preserved as it was. New answers, comments, and votes are closed.