Hi there! I'm having a problem, when I touch this specific block, it doesn't change the color. Can anybody help me? Any help would be HELPFUL!
parent = script.Parent
function onTouch(hit)
parent.BrickColor = "Deep orange"
wait (1)
parent.BrickColor = "Really black"
wait (1)
parent.Transparency = "0.1"
wait (0.1)
parent.Transparency = "0.3"
wait (0.1)
parent.Transparency = "0.5"
wait (0.1)
parent.Transparency = "0.7"
wait (0.1)
parent.Transparency = "0.9"
wait (0.1)
parent.Transparency = "1"
parent.CanCollide = false
end
parent.Touched:connect(onTouch)
output = Workspace.Part.OnTouch:4:bad arguement #3 to 'BrickColor' (BrickColor expected, got string) ty for taking ur time to read this, ;3.

2 comments
Output is telling you everything, BrickColor (In your script: BrickColor.new("Deep orange") and BrickColor.new("Really black")) expected, got string ("Deep orange" and "Really black"). Also, use parent.Touched:Connect(onTouch) instead of parent.Touched:connect(onTouch)
I wasn't quick enough to answer this, in face I was 9 hours late