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: Anyone know how to use click functions??

Previous Thread :: Next Thread 
coolboy10000 is not online. coolboy10000
Joined: 07 Jul 2008
Total Posts: 8982
21 Dec 2011 12:22 PM
My question is. If it is clicked when I put person in the parentheses, is that the mouse or the person? And if I put person.Name will it retrieve the name? Or is there something else I need to get the name of the person who clicked?

function onClicked(person)
if person.Name == script.Parent.Parent.Parent.Parent.OwnerName.Value then
regenerate()
end
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

~~-- cb10k --~~
Report Abuse
Flyer5265 is not online. Flyer5265
Joined: 25 Jul 2009
Total Posts: 27
21 Dec 2011 12:25 PM
i'm think it would be function onClicked() idk, i'm not very good at click functions.
Report Abuse
coolboy10000 is not online. coolboy10000
Joined: 07 Jul 2008
Total Posts: 8982
21 Dec 2011 12:27 PM
No ik it would be that for any regular regen. But this is for a tycoon. I don't know how to retrieve the person who clicked's name.

~~-- cb10k --~~
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