part = game.Workspace.T1 part2 = game.Workspace.T1two part.Touched:connect(function(hit) part.BrickColor = BrickColor.new("Really red") end) part.TouchEnded:connect(function(hit) part.BrickColor = BrickColor.new("Medium stone grey") end) if script.Parent.BrickColor = ("Really red") then script.Parent.Value.Value +1 end
It says something in it is nil.
What you did was correct (in the first half) after that you tried to change a brick color without repeating BrickColor.new, simple mistakes :P
You also didn't repeat the adding value, Roblox is weird like that. lol
part = game.Workspace.T1 part2 = game.Workspace.T1two part.Touched:connect(function(hit) part.BrickColor = BrickColor.new("Really red") end) part.TouchEnded:connect(function(hit) part.BrickColor = BrickColor.new("Medium stone grey") end) if script.Parent.BrickColor = BrickColor.new("Really red") then script.Parent.Value.Value = script.Parent.Value.Value +1 end