Alright, I am new to scripting so this is one of my first touched events. Basically, I am trying to get the brick to turn my legs red when I walk over it. Here is the source. For whatever reason, my legs are not turning red, I was wondering how to fix this?
function touched(hit)
hit.BrickColor = BrickColor.new("Bright red")
end
script.Parent.Touched:connect(touched)
Again, I understand it is a basic script but I have recently started, any help would be appreciated.

2 comments
"hit" is the object that touched the scripts parent, if you're trying to change the part that was touched, change it to script.Parent.BrickColor = BrickColor.new("Bright red")
Your code looks and ran fine for me. Is the script inside a part? Are you sure that it is NOT changing the color of the part - the Pants item could hide the Leg's color.