Check if something is in a certain group

I’m trying to find a solution to check if something is belong to a group. For example, in my case, i want to check if a model parented to a character is a weapon, im trying to find a better solution than adding a bool value to the model and use script to check if the bool value is true

Maybe consider using tables to check?

Use CollectionService with tags.

https://developer.roblox.com/en-us/api-reference/class/CollectionService