How do i make scripts inside of tools work with skinned mesh characters

I am trying to get my pistol to work with a skinned mesh character i managed to get it to equip to the character but any code inside of the tool for example a equipped function does not run whenever equipped is there any way to fix this issue?


i tried adding a print to detect if it was being equipped or not just to check if it was my code that was broken or its just not detecting whenever its equipped