Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Music stops playing when reset?

Asked by 5 years ago

Yeah really small simple script in starterplayerscripts.

local player = script.Parent.Parent
local gui = player:WaitForChild("PlayerGui")
local music = gui:WaitForChild("Music")

while true do
    wait()
    music.SongO:Play()
    wait(96)
    music.SongT:Play()
    wait(92)
    music.SongTH:Play()
    wait(88)
end

No output errors just when you reset music stops. I'm assuming it has something to do with the character resetting but im just not sure how I would go about restarting this script everytime the player dies, help is appreciated :)

SIDE QUESTION: If you know a better way to cycle through the music that would also be appreciated :)

0
What are you trying to accomplish? User#19524 175 — 5y
0
Music is playing when you join the game. When one song ends another one plays. Thats all. But when you die, the music stops playing. I just need it to restart the script CrispyBrix 113 — 5y

Answer this question