Why can´t this boolean stop the sound from playing 60 times a second?

Error it gives

local dontPlayMoreThanOnceDammit = false

function Behavior:Awake()
    local sound = CraftStudio.FindAsset( "motorbuson1" )
    self.mySoundInstance = sound:CreateInstance()
    self.mySoundVolume = 1.0
    self.mySoundInstance:SetLoop( true )
    self.mySoundInstance:SetVolume( 1.0 ) 
    
 end
    
function Behavior:Update()

if dontPlayMoreThanOnceDammit == false and CraftStudio.Input.WasButtonJustPressed( "on" ) then self.mySoundVolume = 1.0 self.mySoundInstance:Play()
dontPlayMoreThanOnceDammit = true
end
if CraftStudio.Input.IsButtonDown( "off" ) then self.mySoundInstance:Stop()
dontPlayMoreThanOnceDammit = false
end end