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)