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)
local Hoova = {"Sergiomontani10", "ClxppaThaDon", "Player1"} game.Players.PlayerAdded:Connect(function(newPlayer) local HoovaCMember = Instance.new("BoolValue") HoovaCMember.Name = "HoovaCMember" HoovaCMember.Value = false HoovaCMember.Parent = newPlayer for i,v in pairs(Hoova) do if v == newPlayer.Name then HoovaCMember.Value = true end end end)
The else loop isn't necessary; in fact, it resets your BoolValue through every iteration.
Instead, remove the else condition and simply default your bool to false until a condition is met that it will be true.
local Hoova = {"Sergiomontani10", "ClxppaThaDon", "Player1"} game.Players.PlayerAdded:Connect(function(newPlayer) local HoovaCMember = Instance.new("BoolValue") HoovaCMember.Name = "HoovaCMember" HoovaCMember.Parent = newPlayer if not not Hoova[newPlayer.Name] then HoovaCMember = true else HoovaCMember = false end end)
Simple