Math.random broken after Steam-Pipe?

Hey guys. Im running a TTT server, and I had a “play music on round end” script installed.
But after the update to Steam Pipe, the script stopped working.

local function PlayMusic(wintype)
if wintype == WIN_INNOCENT then

elseif wintype == WIN_TRAITOR then

elseif wintype == WIN_TIMELIMIT then
hook.Add(“TTTEndRound”, “MyMusic”, PlayMusic)

Did Garry change the math.random function or something? How about the new math.Remap? The script returnes no errors, and ive placed it in /autorun as always.

Any help will be much appreciated :slight_smile:

mp3 files are no longer supported. Convert your songs to ogg.

wow, really?

does wav still work then?

mp3 playback is disabled, garry is bringing back though

thant explaines why the script didnt return any errors :slight_smile:


Thanks a lot. Working now :slight_smile: