Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[SOLVED] How would I go about making a gui/frame visible to only a group of selected people?

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.

2 comments

0

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.

0

Do you want to loop through the names of players from a list or from a team?

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.