So I've used the string match off the wiki to find the name of the player in a string and if it finds it then it makes part of the UI non visible. I've printed out the string and it gives me the list of players (The _G.group2members one)
But for some reason, match is not making the UI non visible for those certain players.
Any help would be appreciated! Thanks.
if _G.group2members.match(player, "p%w+") then
script.Parent.Template1.Add.Visible = false;
end

3 comments
I'm not storing the player names in a table, they're all stored in a string which is why i'm trying to find a function that allows me to find a specific word in a string.
Finished edits.
Had to make a few modifications as you stated but all is working. Thanks a ton!