Server Script doesn't see a tool objects in backpack

So, I added a weapon buying in my game, yet the code just ignores all “combat tool” tagged objects and doesn’t remove old combat tools.
I rewritten the code 3 times and simplified it as much as I could, yet it doesn’t print out any kind of tool that wasn’t added via StarterPack. Roblox Studio just refuses to accept the fact that there is tool objects in backpack.
The tools exist both on client and server side.

[pic 1: the code, I tried to directly copy a tool from serverstorage but oh well of course it didn’t help]

[pic 2: the output]
image

UPD: [pic 3: how the backpack looks]
image

2 Likes

Is it adding the tools in your Backpack by a LocalScript?

no, by the server script. But I got your point

1 Like

Can you send the important parts of the buying script? You don’t need to send it all, just what you think can be causing the problem.


this one.

the _G.UpdateWeapon function is in pic 1 of the post

1 Like

found a solution. It was a dialogue system that moved away all tools in backpack somewhere else LOL. mb :pray:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.