Ah, I see.
Basically, what I'm trying to do is make a script for a trap which goes off when an enemy touches it, but it shouldn't go off if anything that is not an enemy touches it. Which, if all my enemy are called 'Steve' wouldn't be a problem, but if I have 50 enemies with unique names and say 20 traps then things are gonna start to get really complicated. So what I'm really after is a way of putting objects into groups and then detecting which group they are in. So for me one group might be called 'monsters' but I don't want to actually name all my monsters 'monster' because sometimes I will need them to behave individually, so they need individual names. Is there anything like this already in place?