Tool deletes itself for no reason

Hello developers,

Another day another problem. Today my problem is that this pilum (which is a tool, not a model), simply is deleting itself after several seconds of holding it after equipping it. I went to RoDevs discord server, nothing was resolved. So I’ve come here.

Here is a video of it happening

Here’s a snippet of the code, specifically when the player equips it:
image

Can you show the script of the tool where it is being used since that seems to be when it gets deleted?

It’s right there in the original post.

That’s equipped, not when the player clicks.

Not much information to go on here. Could you Ctrl+Shift+F (find in all scripts) and search :Destroy()? This might turn up a lot of results, but it’s likely to be faster than searching for scripts manually.

Sure but I’m pretty sure none of this is doing it:

I added the pilum to a new place, so I can confirm that the problem is not being caused by anything else other than the pilum itself.

The only thing I can think of at this point is some sort of physics weirdness putting the tool below FallenPartsDestroyHeight, either the weld or the animation. Somehow. I don’t see any other way this could possibly be happening, if you’ve narrowed down the tool itself as the issue.

So I do not know why, but deleting the “qPerfectionWeld” and anchoring the part made it not delete itself, but of course the only problem now is that it’s obviously not working due to the character getting teleported to the tool.

1 Like

It must be something to do with qPerfectionWeld anchoring the tool’s main part

1 Like

Unanchoring the part should be safe now if that specific weld was the issue. Should fix the character teleporting.