generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

A Right Click Method?

Previous Thread :: Next Thread 
fabiotheone00 is not online. fabiotheone00
Joined: 27 Oct 2013
Total Posts: 92
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
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
10 Dec 2016 08:26 AM
mouse.Button2Down


i'm not any more should not the panda and?
Report Abuse
fabiotheone00 is not online. fabiotheone00
Joined: 27 Oct 2013
Total Posts: 92
10 Dec 2016 08:27 AM
That's the point, that method doesn't work because it controls the camera..


Signed, fabiotheone00
Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
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
fabiotheone00 is not online. fabiotheone00
Joined: 27 Oct 2013
Total Posts: 92
10 Dec 2016 08:30 AM
###############################################
Report Abuse
fabiotheone00 is not online. fabiotheone00
Joined: 27 Oct 2013
Total Posts: 92
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
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
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
fabiotheone00 is not online. fabiotheone00
Joined: 27 Oct 2013
Total Posts: 92
10 Dec 2016 08:42 AM
Yeah, I know, just fully tested it


Signed, fabiotheone00
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image