function onDied()sDied:Play()end function onState(a,w)if a then w:Play()else w:Pause()end end function onRunning(a)if a>0 then sRunning:Play()else sRunning:Pause()end end
-- functions

function onDied()
	sDied:Play()
end

function onState(state, sound)
	if state then
		sound:Play()
	else
		sound:Pause()
	end
end

function onRunning(speed)
	if speed > 0 then
		sRunning:Play()
	else
		sRunning:Pause()
	end
end
