I was playing around with my studio and I made this simple script:
script.Parent.Touched:Connect(function()
print("hello")
script.Parent.BrickColor = BrickColor.Red()
end)
Somehow, it does not prints "hello". However, the part turns red automatically. My part color in the game is green, but it shows as red whenever I play. Anyone have this same problem and any suggestions to fix it?

2 comments
Maybe it's touching an unanchored part. That wouldn't explain the hello not being printed though.. maybe another script is editing the color...
I tested the brick out with anchored and no other script is functioning to edit the part. Thanks for answering!