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 :)

2 comments

0

What are you trying to accomplish?

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