Help, please, creating a timed fadeout script

You might consider using something like this: