my script
local part = script.Parent
part.Touched:Connect(function()
part.BrickColor = "Cyan"
end)
my script
local part = script.Parent
part.Touched:Connect(function()
part.BrickColor = "Cyan"
end)
part.BrickColor == "Cyan"
What you gave was a string, it expects for you to give it a BrickColor to fix this script you should change it to
part.BrickColor == BrickColor.new("Cyan")
oops typo
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
change part.BrickColor = "Cyan" to part.BrickColor = BrickColor.new("Cyan")