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

How can I stop the song from restarting after the player dies and spawns back?

Asked by
RoyMer 301 Moderation Voter
9 years ago

How can I stop the song from restarting after the player dies and spawns back?

local player = game.Players.LocalPlayer 

repeat wait() until player.PlayerGui:WaitForChild("Track1")

while wait() do
player.PlayerGui.Track1.Part1:Play()
wait(player.PlayerGui.Track1.Part1.TimeLength)
player.PlayerGui.Track1.Part2:Play()
wait(player.PlayerGui.Track1.Part2.TimeLength)
player.PlayerGui.Track1.Part3:Play()
wait(player.PlayerGui.Track1.Part3.TimeLength)
end

Answer this question