Hello all, I have been trying to find out how to get this to work with my really low Lua skills and I have this:
-- You can add up to 3 sounds for this. Add or delete resource.addfile as you need resource.AddFile("sound/deathwins.mp3") resource.AddFile("sound/runnerswin.mp3") resource.AddFile("sound/deploy.wav") -- Remember to change the name of the sounds to the sound you want from above local function PlayMusic(wintype) if wintype == WIN_RUNNER then BroadcastLua('surface.PlaySound("sound/runnerswin.mp3")') elseif wintype == WIN_DEATH then BroadcastLua('surface.PlaySound("sound/deathwins.mp3")') elseif wintype == WIN_TIMELIMIT then BroadcastLua('surface.PlaySound("sound/deploy.wav")') end end hook.Add("DeathRunEndRound", "MyMusic", PlayMusic)
I know its a script that takes up to 1min or less to make, so I won’t say ill pay :
But I was wondering if someone could help or tell me whats I’m doing wrong.
All help is welcome.