"Value of type "int" cannot be assigned to a variable of type "Node"" Error

Godot Version

Godot Version 4.3

Question

I'm trying to make a script get the "score" variable from a different script, but every time i try to do it gives me this error. Am i doing something wrong? do i have to reformat how i have my nodes set up?

Hi,

Considering the error, you’re trying to assign an integer value to a node (using the = sign), which is wrong. As you can guess, you cannot convert an integer to a node as that does not make sense (at least not for a computer).

Can you share your code snippet?

Sounds like you try to edit a node variable to match the score.
Like “node_name += 1”
Instead if “node_name.score += 1”