I keep getting the error that the players Humanoid doens’t have a property of color, even though I put in my code if v.ClassName == “Part” or “UnitOperation” then
Does anyone know how to fix this?
for i, v in pairs(character:GetChildren()) do
if v.ClassName == "Part" or "UnitOperation" then
v.Color = Color3.new(0,0,0)
end
end
The UnionOperation class inherits from the BasePart class (the BasePart class is the base class for all part-type instances), IsA("BasePart") alone will suffice.