Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I can't seem to keep my tools from disappearing?

Asked by 6 years ago

Randomly, and without discernible reason, my tools keep disappearing. I cannot find any reason for them to simply vanish, but they do. The only time they do disappear is when I have FilteringEnabled on, but I'm actually relying on a couple FE features for these mechanics. At this point in times, I've re-written the code about three times but it just keeps happening, even with tools that haven't been scripted yet. When I do some tests I find that they get parented to nil but I cannot re-parent them to the character or backpack. Does anyone have a solution to this or have any of you experienced the same problem?

I've considered taking this up with Roblox Staff but I was hoping the community would have some answers for me.

0
Is it in StarterPack?, You need server-sided Scripts to re-parent them to the character if it's not in 'Starter' folders User#17685 0 — 6y
0
Yes but even if I put it in my own 'custom backpack' it disappears, even if I use scripts to parent them to the character RichardHoss 2 — 6y

1 answer

Log in to vote
0
Answered by
chomboghai 2044 Moderation Voter Community Moderator
6 years ago

Check any scripts that reference the tool. You said that they get parented to nil and are then parent-locked. This is essentially what the :Destroy() method does, so if any of your scripts are calling :Destroy() on the tool, that is where your problem is.

There may be a chance that one of your scripts is referencing the tool by accident somehow. This is unlikely, but if you have a part named Gun and a tool named Gun and you say workspace:FindFirstChild("Gun"), you can't be sure if the tool or the part is referenced.

Either way, with the information you have given, I am about 90% sure that a script is manipulating your tools.

Hope this helps :)

0
None of my scripts reference to tool to :Destroy() but even with scripts disabled they disappear. It's been plaguing me for almost two weeks now, but thank you for the advice RichardHoss 2 — 6y
0
Update: There's no :Destroy() in any of my scripts and it happens still RichardHoss 2 — 6y
0
Anything similar? Like Debris:AddItem()? I don't see any reason why tools should be disappearing. Try click file>new in studio and see if your tools disappear in a clean empty world. chomboghai 2044 — 6y
Ad

Answer this question