1 | Part = script.Parent |
2 |
3 | function Touced |
4 | Part.BrickColor = BrickColor.new( "Really black" ) |
5 | end |
Were you trying to make it so the brick changed color on touch? If so, then you need to add an event listener, so that the script knows when to run (when it is touched).
1 | Part = script.Parent |
2 |
3 | function Touched() |
4 | Part.BrickColor = BrickColor.new( "Really black" ) |
5 | end |
6 | Part.Touched:connect(Touched) |
You forgot to add parentheses after the function.
1 | Part = script.Parent |
2 |
3 | function Touced() -- This is the problem |
4 | Part.BrickColor = BrickColor.new( "Really black" ) |
5 | end |
6 |
7 | Touced() -- If you want it to make this part black when you start up the game |