TellerMan
|
  |
| Joined: 23 Apr 2010 |
| Total Posts: 237 |
|
|
| 09 Jul 2013 07:53 PM |
How does the changed event work? I tried doing this...
script.Parent.Parent.Parent.Changed:connect(function(player)
But it didn't seem to work. Details on Changed? |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2013 07:55 PM |
Don't know what 'script.Parent.Parent.Parent' is, so you're not really giving me much info.
local Part = Game.Workspace.Part
Part.Changed:connect(function(Property) print(Property, Part[Property]) end)
The Changed event returns the changed property by string. |
|
|
| Report Abuse |
|
|
TellerMan
|
  |
| Joined: 23 Apr 2010 |
| Total Posts: 237 |
|
|
| 09 Jul 2013 07:59 PM |
| This is GUI changed. This is a GUI and when the parent of the gui is changed, the script which has to go Parent.Parent.Parent, activates(or should). |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2013 08:04 PM |
| That's a overly complicated way to do anything, I would suggest rethinking your idea. |
|
|
| Report Abuse |
|
|
TellerMan
|
  |
| Joined: 23 Apr 2010 |
| Total Posts: 237 |
|
|
| 09 Jul 2013 08:07 PM |
Well I need to figure out a way to do this. Here let me explain:
It is a GUI for a quest that shows you how many _____'s you've killed. And this script, clones the gui, and makes it visible. But when it's cloned, the variable for player no longer is valid because the amount of Parents has changed. So I need this function for the function(player). But there is probably another way, I'm just confused. |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2013 08:09 PM |
anything.Changed(function(Stuff) The stuff is a string of what property was changed. I have no clue why you would use Changed. |
|
|
| Report Abuse |
|
|