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