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?
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.
Thanks, I'm sure that that will help but it doesn't solve the issue I'm having. My problem is that the music restarts when the character dies.
Nope, the music still restarts on death
NVM I got it working
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
stick it in a localscript, and place it in startergui.
No that doesn't work.
fixed i t?