.Touched function for a box and a parachute

I am currently scripting a pallet (box) with a parachute, which would be launched from a C130.
I just want to know how to make an “if touching” function that would be placed at the bottom of the pallet, make the parachute transparent when the pallet is touching a surface, so that the parachute disables when it is not airborne.

I have tried the following, however the parachute is always transparent:

if script.Parent.touched

then

script.Parent.Parent.Parachute.Part.Transparency = 1 – If it is on the ground or on a C130

else

script.Parent.Parent.Parachute.Part.Transparency = 0 – if it is in the air.

end

Anyone knows how to use .touched?
Thank you.

script.Parent.Touched:Connect(function()
      script.Parent.Parent.Parachute.Parent.Transparency = 1
end)

I don’t really get what you are trying to do here.

Ah, I see. Thank you. Jesus I really need to learn.

He wants the parachute to be transparent while the pallet is in the aircraft or on the ground and visible while it is dropping.
Nice fix!