Why doesn't my script show the cookies in text?

Godot Version

4.72

Why doesn’t my second script work I suspect it might be because I don’t know how to reference practically anything…

If you share code, please wrap it inside three backticks or replace the code in the next block:

extends Label

@export var Cookie : String

func _ready():
	text = Cookie
extends Button

var Cookiesonclick = 1
var Cookies = 0


func _pressed():
	
	Cookies += Cookiesonclick
	print(Cookies)

You must explain what you expect to happen versus what really happens. It’s impossible to tell what you want this script to do.