|
| 03 Aug 2012 01:15 PM |
When I use this part in a script it doesn't remove it from my backpack at all once it's given to me or the other person
if script.Parent.Parent.Name == "CEREALMAN002" then script:remove() elseif script.Parent.Parent.Name == "otherperson" then script:remove() end |
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 03 Aug 2012 01:44 PM |
if script.Parent.Parent.Name == "CEREALMAN002" or script.Parent.Name == "otherperson" then script:Destroy() end
|
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 03 Aug 2012 01:44 PM |
^
Change the parent of script.Parent.Name to script.Parent.Parent.Name |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2012 01:47 PM |
I noticed your name isn't in caps, as that could be the problem.
† KMXD † ~ Evil Duck Overlord, bent on world domination. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 03 Aug 2012 01:48 PM |
@knightmare
if script.Parent.Parent.Name:upper() == "CEREALMAN002" then
|
|
|
| Report Abuse |
|
|
|
| 03 Aug 2012 01:50 PM |
@mix
if script.Parent.Parent.Name:upper() == "CEREALMAN002" or script.Parent.Parent.Name:upper() == "CAPS" then script:Destroy() end
† KMXD † ~ Evil Duck Overlord, bent on world domination. |
|
|
| Report Abuse |
|
|
|
| 03 Aug 2012 01:57 PM |
| My name just shows up as lower case on the forums. No clue why, but it really is in all caps... |
|
|
| Report Abuse |
|
|