I want to be able to run a code, when a certain part has the BrickColor called "Hot pink". How would I change the script below in order to do that?
if script.Parent.BrickColor == "Hot pink" then --[piece of code] end
BrickColor
is not a string, you have to compare it to BrickColor.new("Hot pink")
if script.Parent.BrickColor == BrickColor.new("Hot pink") then -- Code end
If my answer solved your problem please don't forget to accept it.