This is a script that adds a whitelist to an admin GUI I'm working on, however for some reason, everyone still has access to it.
wait(3)
permission = {"DominousSyndicate"} --Put people you want to be VIP/staff here
function checkOkToLetIn(name)
for i = 1,#permission do
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end
if (checkOkToLetIn(script.Parent.Parent.Parent.Name)) then
script.Parent.Enabled = true
else script.Parent:remove()
end

3 comments
script.Parent:remove() <-- Change this to "script.Parent:Destroy()", might be a possible fix
remove is deprecated for that matter^
the brackets in your if statements gives me a hard time reading them and they're irrelevant