(Closed this because I found a different solution)
I have a music player in my game as well as a button that lets you disable it. Everything works fine, and the script becomes disabled/ enabled correctly, but if you try to turn the music back on the script won't play the music.
Here's the script for the music player:
wait(1.2) while true do wait(.1) script.FredRex:Play() script.FredRex.IsSelected.Value = true wait(121.8) script.FredRex.IsSelected.Value = false script.FrenchAnthem:Play() script.FrenchAnthem.IsSelected.Value = true wait(94.4) script.FrenchAnthem.IsSelected.Value = false script.PreussensGloria:Play() script.PreussensGloria.IsSelected.Value = true wait(140) script.PreussensGloria.IsSelected.Value = false end
and here's the script for the button to disable/enable it:
function Clicked() if workspace.MusicPlayer.Disabled == false then workspace.MusicPlayer.Disabled = true workspace.MusicPlayer.FredRex:Stop() workspace.MusicPlayer.FrenchAnthem:Stop() workspace.MusicPlayer.PreussensGloria:Stop() else workspace.MusicPlayer.Disabled = false end end script.Parent.MouseButton1Click:Connect(Clicked)