How can i save a color so i can reset it after i chaned it?
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:
1 | char.Yoru.Handle.BrickColor = BrickColor.new(Deep orange) |
2 | char.Yoru.Part.BrickColor = BrickColor.new(Really blue) |
This is what i have now:
02 | if char:FindFirstChild( "Yoru" ) then |
03 | for i,part in pairs (char.Yoru:GetChildren()) do |
04 | if part:IsA( "Part" ) or part:IsA( "UnionOperation" ) then |
05 | part.BrickColor = BrickColor.new(part.Color.Value) |
08 | char.Yoru.Handle.BlackFire:Remove() |
09 | elseif player.Backpack:FindFirstChild( "Yoru" ) then |
10 | for i,part in pairs (player.Backpack.Yoru:GetChildren()) do |
11 | if part:IsA( "Part" ) or part:IsA( "UnionOperation" ) then |
12 | part.BrickColor = BrickColor.new(part.Color.Value) |
15 | player.Backpack.Yoru.Handle.BlackFire:Remove() |
Thank you!