Why doesn't this work, no errors, colors just won't change. Simple script I was playing around with btw
--ORIGINAL SCRIPT
game:GetService("Players").PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
wait(.5)
for _,part in pairs(char:GetChildren()) do
if part:IsA("BasePart") then -- CHANGED FROM PART TO BASEPART
part.BrickColor = BrickColor.Random()
end
end
end)
end)
[[EDITED]] / / / This still will not work, I am completely clueless
function newPlayer(player)
local char = player.Character
for _,part in next,char:GetChildren() do
if part:IsA('BasePart') then
part.BrickColor = BrickColor.Random()
end
end
end
game.Players.PlayerAdded:connect(newPlayer)
-- manually fire it for already joined players
for _, player in pairs(game.Players:GetPlayers()) do
newPlayer(player)
end

3 comments
For people answering, might it be a Skin Colors property overriding the color of the actual brick parts?
Enable your script if its disabled
Script is enabled, M39 might be on to something