@name Playlist E2
@persist I Bind:string Music:array Radio:entity
if(first())
{
    runOnTick(1)
    
    Radio = holoCreate(1,owner():attachmentPos("eyes")) #What'll be the radio. This can be defined as entity() or anything that can have your sounds played through it.
    holoParentAttachment(1,owner(),"eyes")
    holoAlpha(1,0)
    
    Bind = "I" #Bind key here
    
    Music = array("music/mvm_end_wave.wav","music/hl1_song25_remix3.mp3","music/mp_coop_lobby_2_c7.wav") #Put music paths here
}

Key = owner():keyPressed(Bind)
if(changed(Key)&Key)
{
    #Loops I from 1 to the amount of Music paths.
    if(I<Music:count())
    {
        I++
    }else
    {
        I = 1
    }
    
    soundStop(1)
    timer("snd",20)
}

if(clk("snd"))
{
    stoptimer("snd")
    local Str = Music[I,string]
    Radio:soundPlay(1,300,Str)
}
