Entity:ClassMatches(Entity, string) server Class matches. Arguments entity Entity classNameOrWildcard string Returns boolean true if matches, false otherwise. Examples Entity:ClassMatches – Class matches.