Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
Edited 6 years ago

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.

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. T0XN 276 — 6y
0
Do you want to loop through the names of players from a list or from a team? T0XN 276 — 6y

Closed as Not Constructive by User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
zValerian 108
6 years ago

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.

0
Not for a team but thankyou! I can try to work off this. ZapherosX 43 — 6y
0
This will cause a memory leak. Use :Destroy() instead. T0XN 276 — 6y
0
"script.Parent.Parent.Parent.TeamColor" That is a really ugly reference, consider changing it. T0XN 276 — 6y
Ad