Invalid get index "max_value" (on base "texturepogress") with value of typi "Nil".

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By KiraArts

Im using a texturepogress as a hp bar, but i have a problem.
The code is like:

max_value = hp
value = actual_life

(hp and actual_life are numbers)
when i try to run the proyect the debug say: Invalid get index “max_value” (on base “texturepogress”) with value of typi “Nil”.
and i dont know what means
what is “Nil”?

How do you reference the texture progress?

umma | 2022-08-13 22:44

:bust_in_silhouette: Reply From: SteveSmith

Nil means the object doesn’t exist.