|
| 20 Sep 2014 09:30 PM |
| I made a crowbar from two parts, and used a weld plugin to weld them. After adding some code to wait for dependencies, the tool fails to weld when I equip it for a second time. Why might this be so? |
|
|
| Report Abuse |
|
|
NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
|
| 20 Sep 2014 09:34 PM |
| Try re-welding them every time the Equipped function is called. |
|
|
| Report Abuse |
|
|
NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
| |
|
|
| 21 Sep 2014 06:39 AM |
I added a
script.Parent.Equipped:connect(function() reweld() end)
to the weld scripts, and the tool still breaks when reequipped. Are there other reasons why it might break? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 21 Sep 2014 10:05 AM |
Well I don't know what the issue is but
script.Parent.Equipped:connect(function() reweld() end)
basically you have an anonymous function that calls a function. Just do: script.Parent.Equipped:connect(reweld) |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2014 12:13 PM |
| Now, when I use it to hit anything, it seems to welding fails yet again. |
|
|
| Report Abuse |
|
|