I have a script and it is an introduction song. But it tends to replay the script once the player resets or respawns his/her own character. Any advice on fixing the script to not allow it to replay the song upon reseting your own character?
local time = 42 Game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local song = Workspace.Introduction.WomanKing local clone = song:Clone() clone.Parent = plr wait(10) clone:Play() wait(45) clone.Volume = 0.6 wait(0.2) clone.Volume = 0.5 wait(0.2) clone.Volume = 0.4 wait(0.2) clone.Volume = 0.3 wait(0.2) clone.Volume = 0.2 wait(0.2) clone.Volume = 0.1 wait(0.2) clone.Volume = 0.0 repeat clone:Stop() until clone.IsPlaying == false end) end)
Take out line 3.
Sorry I thought you meant to make it play every time someone spawns, by taking out line 3 it will only play when the player joins the game.