local model = tostring(self.Entity.GetModel())
This is wrong, you call functions on an object using : (“self.Entity:GetModel()”)
This rule can be confusing, because sometimes when calling a function you use a dot, and sometimes a colon. As a general rule, if you’re doing something to the part before the function, you use a colon, otherwise a dot.
For example, “self.Entity:GetModel()” is correct, because you’re doing something to self.Entity (you’re getting its model). On the other hand “string.lower(‘hi’)” is also correct, because you’re not doing anything to the string library (you’re doing something to a string, but not the string library itself)
Also, GetModel returns a string, so there’s no need for the tostring (though it doesn’t hurt anything)
if string.find(model, “male” or “Male”, 1, false ) != nil then
This is also wrong, because “or” is used to combine two boolean (true or false) values, as in “if a == 2 or c == 3”. You could either search for each one separately, or you could convert the model to lowercase with string.lower(model) and then search for the lowercase “male”.