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

function onDied()
	sDied:Play()
	sOuch: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
