I made this music script but it won't work.
while true do game.Workspace.Music:Play() wait(100) end
Well... It does sorta work, but every time the player dies the music restarts. How do I prevent that from happening?
local Players = game:GetService("Players") Players.PlayerAdded:connect(function(player) mus = game.Workspace.Music:clone() mus.Parent = player.PlayerGui mus.Looped = true mus:Play() end)
This script puts the music into the players' playergui. In here it should not be affected as the player dies.