Here is the script that is not working.
ShieldCharge = script.Parent.Parent.ShieldHealth.ShieldCharge
TotalShield = script.Parent.TotalShield
Charge = script.Parent.Charge.Value
x = false
repeat
if Charge >= 1 then
ShieldCharge.part1.BrickColor = BrickColor.New("Toothpaste")
end
wait(.5)
until x == true
Its meant to have a parts color to change to Toothpaste once Charge has reached one or greater. The Charge is a NumberValue which is constantly increasing, but that script is not in question.
Any and all help will be greatly appreciated!
-MyNameIsGuiseppe

1 comment
Edited for code block.