humanoid.Running:Connect(function(x)if humanoid.MoveDirection.Magnitude>0 and(x>0 and humanoid:GetState()~=Enum.HumanoidStateType.Climbing)then if oldWalkSpeed~=humanoid.WalkSpeed then getSoundProperties()update()end currentSound.Playing=true currentSound.Looped=true else currentSound:Stop()end end)
-- check if the player is moving and not climbing
humanoid.Running:Connect(function(speed)
	if
		humanoid.MoveDirection.Magnitude > 0
		and speed > 0
		and humanoid:GetState() ~= Enum.HumanoidStateType.Climbing
	then
		if oldWalkSpeed ~= humanoid.WalkSpeed then
			getSoundProperties()
			update()
		end
		currentSound.Playing = true
		currentSound.Looped = true
	else
		currentSound:Stop()
	end
end)
