Custom music mod help

Loam803

Newbie
Nov 14, 2025
5
0
80
Could someone help me make a mod that replaces in game music because I tried and it didn't work also here's what I tried
local audio = audio_stream_load(Tomorrow_s-Nostalgia-Today.ogg)

function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_CASTLE then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end

hook_event(HOOK_ON_WARP, on_warp)
Also I put the actual sound file in the same folder as the code's file which I named main.lua
 

Users who are viewing this thread