I am trying to make a script that finds when a player has a red body color and it only detects one player. How can I make this detect ALL players with a red body color?
local kid = {}
local brickcolors = {
BrickColor.new("Really red");
}
for i, d in pairs(game.Players:GetPlayers()) do
local char = d.Character or d.CharacterAdded:Wait()
for i, color in brickcolors do
local bc = char:WaitForChild("Body Colors")
if bc.HeadColor == color then
table.insert(kid,d)
end
end
end
task.wait(0.1)
for i, a in kid do
print(a.Name)
end