So I want to basically make I have a table I want the Players in the table to get a gui if there name is in that table
This is what I got
workspaces.RadioMesh.ClickDetector.MouseClick:Connect(function(player)
local Allowed = {
"Tunnells";
"Beast29man"
}
for i,v in pairs(Allowed) do
player.PlayerGui.Music.Enabled = true
end
end)
So your for loop iterates twice and gives the player the music enabled. Instead what you want to do is
for _,v in ipairs(Allowed) do
if player.Name == v then -- this checks that the player's name in quesiton is in the array
-- enable music thing
break -- we don't need to continue iterating
end
end
P.S. If you want to actively update those names, you’d also have to put the array outside the function, otherwise the array is constant and can only be changed for new servers.