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
 

Re: Pressing outside of a GUI?

Previous Thread :: Next Thread 
peoplemove12 is not online. peoplemove12
Joined: 11 Feb 2010
Total Posts: 1442
14 Jul 2015 11:03 PM
How to detect if a player is pressing outside of a gui?
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
14 Jul 2015 11:07 PM
Math.

Or you could put an invisble button with a lower ZIndex than the GUI.
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
14 Jul 2015 11:11 PM
Mouse.X
Mouse.Y

and do some magic


I don't need a siggy
Report Abuse
peoplemove12 is not online. peoplemove12
Joined: 11 Feb 2010
Total Posts: 1442
14 Jul 2015 11:18 PM
example please
Report Abuse
Zeloi is not online. Zeloi
Joined: 27 Sep 2010
Total Posts: 1143
14 Jul 2015 11:21 PM
Just make an invisible button sized(1, 0, 1, 0) that makes the GUI invisible(Visible = false) with a lower ZIndex than the GUI .
Report Abuse
East98 is online. East98
Joined: 17 Jun 2012
Total Posts: 418
15 Jul 2015 12:03 AM
mouse.Button1Down:connect(function()
print(mouse.X..", "..mouse.Y)
--This prints the position on the users window of the mouse. Use math to determine if its outside the frame
end)

--East98
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