|
| 24 Jan 2013 09:27 AM |
For instance:
script.Parent.Parent
??? I mess up scripts when I don't know how many parents to add. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2013 10:09 AM |
Two parents are required if you're referencing the parent of the parent of the script.
As in: game->Workspace->Part->Script
script.Parent.Parent, there, would give you Workspace. |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 24 Jan 2013 01:46 PM |
| This is so confusing, but ok |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2013 02:00 PM |
heres example ::
Workspace ---Model parent ---BlueBrick parent ---IntValue parent ---script script
to signal the intvalue its script.Parent (1parent) to signal the BlueBrick its script.Parent.Parent (2parents) to signal the Model its script.Parent.Parent.Parent (3parents)
hope this helped
|
|
|
| Report Abuse |
|
|
|
| 24 Jan 2013 02:02 PM |
heres example ::
the bluebrick is INSIDE workspace intvalue is inside bluebrick and script is inside intvalue |
|
|
| Report Abuse |
|
|