Im trying to change the color of muliply parts into Really black and then change it back to what it was before.P.S the color what it was before is the same for every player ,but how can i get the color back for every part without typing:
char.Yoru.Handle.BrickColor = BrickColor.new(Deep orange)
char.Yoru.Part.BrickColor = BrickColor.new(Really blue)
....?
This is what i have now:
--I didnt incude the "change color to black thing" because this is the part where i have problems
if char:FindFirstChild("Yoru") then
for i,part in pairs(char.Yoru:GetChildren())do
if part:IsA("Part") or part:IsA("UnionOperation") then
part.BrickColor = BrickColor.new(part.Color.Value) --I have a String Value with the name of the Color it had before inside of every part
end
end
char.Yoru.Handle.BlackFire:Remove()
elseif player.Backpack:FindFirstChild("Yoru") then
for i,part in pairs(player.Backpack.Yoru:GetChildren())do
if part:IsA("Part") or part:IsA("UnionOperation") then
part.BrickColor = BrickColor.new(part.Color.Value)--I have a String Value with the name of the Color it had before inside of every part
end
end
player.Backpack.Yoru.Handle.BlackFire:Remove()
end
Thank you!
