I have a question

ok am trying to make a script… for example a radio to start play music or something any ideas?

function Update()
{
if(Input.GetKeyDown(“e”))
{

“what am i suppose to write here”.Play(“sound”, PlayMode.StopAll);
}
}

You’ll need an AudioSource to play a sound. Attach one to your game object, assign it an AudioClip then you can call audio.Play() to play it. See AudioSource in the Unity documentation.

thanks a lot man… yea i know i have to put an audiosource its the audio.play that i didnt know… thanks again