Check for Tag in Name.

How can I check if [MG] is in a player’s name?

I know that I use Player.Nick, but I need to figure out how to check if the characters “[MG]” are in the player’s name somewhere.

Thanks for the help :smiley:

[lua]
if (string.find(ply:Nick(), “[MG]”) != nil) then
[/lua]

This what you’re looking for?