I want to remove this ScreenGUI from selected Players but it does not work. The code is below.
plr = script.Parent.Parent.Parent
admins = {"AdvancedCode", "Player1"}
d = false
for i = 1, #admins do
if plr.Name == admins[i] then
script.Parent:remove()
if not d then
d = true
end
end
end
All help is appreciated!

2 comments
Added a modicum amount of code to this to make it a little bit easier to manipulate, I appreciate this!
Glad I could help :) Happy developing!