having a gui texture(jpeg) and audio appear and play on trigger enter

Im really new to scripting and have started learning javascript and I don’t know how to have a having a gui texture and audio appear and play on trigger enter for jumpscares. The gui texture as well as the audio I need them to be changeable in the inspector and appear and play for an amount of time preferably editable in the inspector but if you want to have it only editable in the script thats ok too

Can someone please help me and explain how to make a script to do this, ex: variables, functions, what is needed for this

I am really confused on what you need to start and put for certian scripts whether you need to declare variables a certain way or functions or using strings

I know the meanings of variables, types of functions, and basic stuff but don’t know strings and others

Help is really appriciated

Well, my Asset Store package “master audio” for $10 can do the sound part for you, with no coding. It’s submitted and will hopefully be available for purchase in a few days. I would go watch the Unity 3d shooter tutorial at 3dbuzz for your first free training. It’s six hours or so and extremely entertaining.