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 » Scripting Helpers
Home Search
 

Re: Functions

Previous Thread :: Next Thread 
TCurrency is not online. TCurrency
Joined: 24 Jan 2011
Total Posts: 952
06 May 2013 04:32 AM
How to apply a mouseclick function to a GUI?

Anybody got time for a siggy
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
06 May 2013 04:37 AM

function onclick()

end
script.Parent.MouseButton1Down:connect(onclick)
Report Abuse
juriaan is not online. juriaan
Joined: 25 Nov 2008
Total Posts: 939
06 May 2013 04:38 AM
function Click()
-- Code
end

script.Parent.MouseButton1Down:connect(Click)

or

script.Parent.MouseButton1Down:connect(function()
-- Code
end)

For more information about the events in a GUI object go to wiki.roblox.com
Report Abuse
TCurrency is not online. TCurrency
Joined: 24 Jan 2011
Total Posts: 952
06 May 2013 06:17 AM
Hi Gamer, it's glorybox :)

And thanks gamer and Juriaan. :)

Anybody got time for a siggy
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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