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

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

Asked by 10 years ago

How would i do this? Can Anyone Help?

1 answer

Log in to vote
1
Answered by 10 years ago

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
Ad

Answer this question