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

How would i make a gui only show for certain people?

How would i do this? Can Anyone Help?

1 answer

✓ Accepted answer

Put this in a

localscript

inside of the Screengui.

local peoplewhocansee = {"digitalzer3","Whoeverelse"}

repeat wait() until game.Players.LocalPlayer.Character

local can = false
 for i = 1,#peoplewhocansee do 
if game.Players.LocalPlayer.Name == peoplewhocansee[i] then 
can = true 
end
 end

if can == true then
 print("yeya") 
else 
script.Parent:Destroy() 
end

This discussion is preserved as it was. New answers, comments, and votes are closed.