For some odd reason this script isnt working. The game is Filtering Enabled.
If your name is in the table it is suppose to set your value to true but it won't.
Any Fixes?
local Hoova = {"Sergiomontani10", "ClxppaThaDon", "Player1"}
game.Players.PlayerAdded:Connect(function(newPlayer)
local HoovaCMember = Instance.new("BoolValue")
HoovaCMember.Name = "HoovaCMember"
HoovaCMember.Parent = newPlayer
for i,v in pairs(Hoova) do
if v == newPlayer.Name then
HoovaCMember.Value = true
else
HoovaCMember.Value = false
end
end
end)

4 comments
That doesn't make any sense, v is a string.
That won't work the string does have the property ".Name". are you using a localscript or a script?
You dont need the else statement. The else statement turns off the value since the player is not equal to every single person in there.
I have no idea what you mean v being a string, the .Name is also the string, script is fine just needed to remove the else statement. I tested it out.