|
| 25 Aug 2014 07:16 AM |
I want to have a function fire when a script's parent is removed.
script.Parent.(something):connect(function() end)
Is this possible? If so what would go in the place of (something)? |
|
|
| Report Abuse |
|
|
IcyFires
|
  |
| Joined: 29 Jun 2013 |
| Total Posts: 5046 |
|
|
| 25 Aug 2014 07:17 AM |
If the script's parent is removed, the script is removed and can't run.
http://www.roblox.com/--item?id=171600495 |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2014 07:24 AM |
| The script's parent could be moved into something like lighting, and then fire it using "AncestryChanged" and THEN remove it. |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2014 07:26 AM |
| Thanks Beta that's a great idea! |
|
|
| Report Abuse |
|
|