Brickcoloring parts problem

so I’m trying to make if something has this color it will change to another one but it doesnt work does anyone know why?

if v.BrickColor == "Medium stone grey" then
    v.BrickColor = BrickColor.new("Dark stone grey")
elseif v.BrickColor == "Dark stone grey" then
	v.BrickColor = BrickColor.new("Medium stone grey")
end

use brickcolor.new for the if statement too as part.BrickColor returns a brickcolor not a string

like this

if v.BrickColor.new() == "Medium stone grey" then
					v.BrickColor = BrickColor.new("Dark stone grey")
				elseif v.BrickColor.new() == "Dark stone grey" then
					v.BrickColor = BrickColor.new("Medium stone grey")
				end

no, like this

if v.BrickColor==BrickColor.new("Brick color name") then
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.