local name = {["blackshot43"] = true , ["powdernose88"] = true, ["Colossus001"] = true, ["Fuzi0nPr0gramz"]= true, ["Seantan8"] = true}
game.Players.PlayerAdded:Connect(function(plr)
if plr.Name == name then
script["O5 Council"]:Clone().Parent = plr.PlayerGui
end
end)
What you're basically doing here...
if plr.Name == name then
...is that you're comparing a string (plr.Name
) to a dictionary (name
). If you want to find if a name is equivalent to the player's Name, use a for loop:
for i, ChosenName in pairs(name) do if ChosenName == plr.Name then -- Something here end end
You might also get yelled at for having the server access the PlayerGui
. The server can access the PlayerGui itself but not its descendants with FE on. If it's still giving you an issue, you can always make the script a local script.