Hey again lol! I keep getting this error on my code and I'm not sure what I did wrong/what I should fix to get this working. I'm new to coding and I'm learning as I go.

I'm attemping to code two buttons (left and right) to change images when pressed. The images are also attached below, a pot and mortar and pestel.



This is an example of setting the texture of a Sprite2D named pot from an image file pot.jpg:

$pot.texture = load("res://pot.jpg")

https://docs.godotengine.org/en/4.2/classes/class_imagetexture.html#description

I noticed that you're using Godot 4.2.1-stable. I recommend upgrading to Godot 4.2.2-stable or 4.3-stable.