Holstering Script Issue

So, I got a holstering script for bigger guns, but when the AR is on the player’s back and I equip a small gun it unholsters.

I was thinking about implementing int values, but I honestly don’t know how to script those, so.

This could possibly be from the Holstering script disabling everytime you equip anything. Something like this:

Character.ChildAdded:Connect(function(child) --This is just as an example.
    if child:IsA("Tool") then 
        UnHolster()
    end
end)

I would try to make a LocalScript Inside that weapon, and when the Specific Weapon Equips, it sends a message to the server (Or another client, based off of how you have this programmed) to unholster that weapon. This might take some re-writing.

How do I make it detect a Specific Weapon?

Use: Ctrl+Shift+F and search for the name of the small gun. This may help you find it in the scripts. Once you find where it is being equipped that would be the spot to look for the name change for the gun … I would assume. Someplace has the name of the gun or object it is equipping.

Here is the script for the holstering BTW.