How do I add music at the end of a round in Deathrun?

I’ve been searching for hours and hours trying to find a script that would play music at the end of a round in Deathrun. If anyone could help me out it’d be highly appreciated.

I’ve tried the following solutions;

I placed this script in lua/autorun/, lua/autorun/server, and lua/autorun/client but none of it is working! Please help me!

Are there any Lua errors being output?

Nope.


hook.Add( "OnRoundSet", "dndevowner", function( round, winner )
	if round == ROUND_ENDING then
		if winner == TEAM_RUNNER then
			BroadcastLua('surface.PlaySound("sound/runnerswin.mp3")')
		elseif winner == TEAM_DEATH then
			BroadcastLua('surface.PlaySound("sound/deathwins.mp3")')
		elseif winner == 123 then -- If the winner is the timelimit, it will be the number 123.
			BroadcastLua('surface.PlaySound("sound/deploy.wav")')
		end
	end
end )

You just had to change the “Round Set Example”