Skin Shop Not Working

Godot Version

Godot 4.2


Hello im trying to make a skin shop for my game and im having some problems with changing the texture when buying so the sprite2d is a Sprite2D global script from my player scene i dont get errors it just does not change the texture not sure why This is my ShopScript

extends Area2D

@onready var no_money_label = $"../../No Money Label"
@onready var timer = $"../../Timer"

func _on_input_event(viewport, event, shape_idx):
    if global.score <= 0 and event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
        print("No Money")
        no_money_label.text = "Not enough cash"
        Sprite2d.texture = load("res://Sprites/Cookie/Cookie Charecters/PackageCookie.png")

func _on_timer_timeout():
    no_money_label.text = ""

and this is the global script

extends Sprite2D

@onready var sprite = $"."

why did you space instead of tab??

if your space is correct and you have any score bigger than 0

than the skin loading code didn’t execute