vars.Wandering.Changed:connect(function(a)if vars.Wandering.Value and(not vars.Attacking.Value and not vars.Chasing.Value)then if sdb then removeSound()else playSound(sr[4])end end end)vars.Attacking.Changed:connect(function(a)if vars.Attacking.Value then removeSound()playSound(sr[1])end end)vars.Chasing.Changed:connect(function(a)if vars.Chasing.Value and(not vars.Wandering.Value and not vars.Attacking.Value)then if sdb then removeSound()else playSound(sr[2])end end end)


vars.Wandering.Changed:connect(function(b)
	if vars.Wandering.Value and not vars.Attacking.Value and not vars.Chasing.Value then
		if sdb then 
			removeSound()
		else
			playSound(sr[4])
		end
	end
end)

vars.Attacking.Changed:connect(function(b)
	if vars.Attacking.Value then
		removeSound()
		playSound(sr[1])
	end
end)

vars.Chasing.Changed:connect(function(b)
	if vars.Chasing.Value and not vars.Wandering.Value and not vars.Attacking.Value then
		if sdb then 
			removeSound()
		else
			playSound(sr[2])
		end
	end
end)

