I made a music frame, When you click this button it's meant to stop the music It was working fine, until an update from roblox totally screwed it up! Can anyone help me please? This is the code :
local Stoper = script.Parent
function onClick()
local Sound = game.Workspace.Sound
Sound.Volume = 0
Sound.IsPlaying = false
Sound.IsPaused = true
Sound:Destroy()
end
Stoper.ClickDetector.MouseClick:connect(onClick)
Thanks for any help!

1 comment
Roblox did not mess anything up. You are trying to write to properties that can only be read such as 'isPaused' and 'isPlaying'. Rather you must call functions on these to start them again.