Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 05 Dec 2011 02:02 PM |
I am so stupid. I forgot about 'nil'
function OnSelected() script.Parent = nil script.Parent.Selected:connect(OnSelected)
It's supposed to make the hopperbin tool to work without it's appearance on the players gears. |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 05 Dec 2011 02:08 PM |
Should work, btw, the better way to do the script is
script.Parent.Selected:connect(function() script.Parent = nil end) |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 05 Dec 2011 02:14 PM |
| So your telling me that you showed the easier way? |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 05 Dec 2011 02:15 PM |
| Thx, you refreshed my brain... |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2011 02:19 PM |
| silly Miro, forgetting his anonymous functions.,.. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 05 Dec 2011 02:22 PM |
| I forgot it. -_-' By the way, how did you get that troll hat? |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 05 Dec 2011 03:00 PM |
You gotta be a troll, duh!
Kidding poke :P |
|
|
| Report Abuse |
|
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
| |
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
|
| 05 Dec 2011 03:33 PM |
Easy
bin = script.Parent function OnSelected() script.Parent = bin bin.Parent = nil script.Parent.Selected:connect(OnSelected)
First of all when you did this script.Parent = nil It removed the script. You were suppose to do, script.Parent.Parent = nil --To remove the hopperbin. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 05 Dec 2011 03:37 PM |
@xvy
That helped alot, next time no more forgeting 'nil'. Thanks guys... |
|
|
| Report Abuse |
|
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
| |
|