|
| 10 Dec 2016 08:21 AM |
Is there a way to sense the player right clicking a GUI, I am making a lighting system with presets, and to set it, I want the user to right click the preset they want to set it to, but since right click controls the camera, is there a way to make it so that I could sense the player right clicking the GUI?
Signed, fabiotheone00 |
|
|
| Report Abuse |
|
|
|
| 10 Dec 2016 08:26 AM |
mouse.Button2Down
i'm not any more should not the panda and? |
|
|
| Report Abuse |
|
|
|
| 10 Dec 2016 08:27 AM |
That's the point, that method doesn't work because it controls the camera..
Signed, fabiotheone00 |
|
|
| Report Abuse |
|
|
|
| 10 Dec 2016 08:28 AM |
actually, it does work
but it will also move the camera unless it's on a gui button
i'm not any more should not the panda and? |
|
|
| Report Abuse |
|
|
|
| 10 Dec 2016 08:30 AM |
| ############################################### |
|
|
| Report Abuse |
|
|
|
| 10 Dec 2016 08:32 AM |
It doesn't, in studio, when I try to write the method, it says in the description it doesn't work..
Signed, fabiotheone00 |
|
|
| Report Abuse |
|
|
|
| 10 Dec 2016 08:42 AM |
what are you talking about
this works completely fine
local p = game.Players.LocalPlayer local m = p:GetMouse()
m.Button2Down:Connect(function() print("clicked") end)
i'm not any more should not the panda and? |
|
|
| Report Abuse |
|
|
|
| 10 Dec 2016 08:42 AM |
Yeah, I know, just fully tested it
Signed, fabiotheone00 |
|
|
| Report Abuse |
|
|