myMusic.stop() is not a function
update = function()
if keyboard.A then
start = 1
end
if keyboard.S then
start = 0
end
if start == 1 then
myMusic = audio.playMusic("music")
end
if start == 0 then
myMusic.stop()
end
end
The console says myMusic.stop() is not a function but the code works anyway