I have a tool named Pistol, and when equipped, it will check what team he/she(the player) is in. Suppose there are two teams, say, Red and Blue. If the script detects the player is in: Red - The player will be given the Comedy Accessory. Blue - The player will be given the Tragedy Accessory.
I think it uses the onEquip and onUnequip functions, onEquip because I want the script to detect when the tool is equipped, onUnequip because I want the accessory to be taken off when unequipped.
If this isn't possible, is there any other way I can do this with a similar effect?

1 comment
By the way, by similar effect I mean to have the accessory on while the tool is equipped.