1 | local cd = script.Parent |
2 |
3 | cd.MouseClick:Connect( function () |
4 | script.Parent.Parent.BrickColor = BrickColor.new( "Red" ) |
5 | end |
You were pretty close. 2 things: First of all, there is no Red BrickColor. There is stuff like Maroon and Really red. Second of all, you forgot to place a close bracket at the end to close off the connected function.
1 | local cd = script.Parent |
2 |
3 | cd.MouseClick:Connect( function () |
4 | script.Parent.Parent.BrickColor = BrickColor.new( "Really red" ) |
5 | end ) |