I've tried this before and it's confusing. I have the gui made and everything it's just this part that trips me up.
COMMUNITY QUESTION
[SOLVED] How would I go about making a gui/frame visible to only a group of selected people?
1 answer
If you are trying to make it for a certain team, you would use this script here.
if script.Parent.Parent.Parent.TeamColor == game.Teams.TEAMHERE.TeamColor then
script.Parent.Enabled = true
else script.Parent:remove()
end
Put that in the screen gui. If the player is teamed on join, they will get it, if they are not, they need to reset.
3 comments
0
Not for a team but thankyou! I can try to work off this.
0
This will cause a memory leak. Use :Destroy() instead.
0
"script.Parent.Parent.Parent.TeamColor" That is a really ugly reference, consider changing it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
What does "group" really mean in your case? Telling us that you're confused on how to fix the problem is reduntant because that is why you're here. Please provide more information.
Do you want to loop through the names of players from a list or from a team?