Liquid is a front end templating language, so you could emulate a different price, but it doesn’t change the price. Looks like you’ve already figured that part out. So to change the price based on a metafield you’d be looking at things like Functions or the Cart Transform API