I am trying to make a ban script but i don't know how to check if a player has a certain child without the script outputting an error
Code:
game.Players.PlayerAdded:Connect(function(player)
for _, v in pairs(game.Players:GetPlayers(player)) do
local bool = Instance.new("BoolValue")
bool.Name = ("Banned_" ..player.UserId)
bool.Parent = player
break
end
end)
