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.