|
| 17 Feb 2014 01:48 PM |
Script only runs once, I would like it to run every time the wepunz tool is deselected.
bin = script.Parent me = script.Parent.Parent.Parent wepunz = me.Backpack.TerrierPunch
wepunz.Deselected:connect(function(mouse) me.Character.Torso.Philberto:Destroy() end) |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
|
| 17 Feb 2014 01:51 PM |
| Philberto is a part, named Philberto. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
|
| 17 Feb 2014 01:58 PM |
Yes, Philberto is in my torso...
Can I get someone over here who will actually help now? |
|
|
| Report Abuse |
|
|
| |
|
subenari
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 116 |
|
|
| 17 Feb 2014 02:18 PM |
| because you probably didn't add philberto back to your torso after you ran this script once |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 02:38 PM |
Philberto is added into the torso by a seperate script every time the tool is selected.
The problem is, it won't remove Philberto more than once. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 17 Feb 2014 02:41 PM |
how can it remove him if hes gone -_-
And what do you mean "actually help", you're giving us basically NO information |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 02:43 PM |
KEVKEV, learn to read please.
Philberto is added EVERY time the tool is SELECTED
when the tool is DEselected it removes Philberto.
while it should remove him EVERY time, it only removes him ONCE. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 17 Feb 2014 02:46 PM |
Ok, be rude. See if I care..
Btw, why didnt u post the selected script? |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 02:49 PM |
| Because the selected script works perfectly fine, and this is a seperate script altogether. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 17 Feb 2014 05:37 PM |
bump again
This thread has been open for 3+ hours and not one person whose seen it knows how to make it run more than once? .-. |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 17 Feb 2014 05:41 PM |
if Philberto then destroy him end |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2014 05:52 PM |
I changed it into the format you suggested, Max. Although it still has the exact same problem. It only works once, then stops working.
Changed script to:
bin = script.Parent me = script.Parent.Parent.Parent wepunz = me.Backpack.TerrierPunch
wepunz.Deselected:connect(function(mouse) if (me.Character.Torso.Philberto) then me.Character.Torso.Philberto:Destroy() end end)
|
|
|
| Report Abuse |
|
|