Is there a possible way to script a tool attachment on a custom rig so that the character can hold tools?

Im trying to equip a tool for my character but, it doesn’t work with my rig for some reason. Is there a possible way to script a tool attachment on a custom rig so that the character can hold tools?

This is the rig itself
Screenshot 2022-03-06 093727

Child