Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Whats the difference between this two variables? [closed]

Asked by 5 years ago

This question already has an answer here:

"local" in front of variables

Whats the difference between this two codes

local health=print("hello") 

Health=print("hello") 

The first one makes a variable but what does the second one do? Whats the differences between them?

0
The variable without the local us usually for making numbers or tables ex: table Players = {"mom","dad"} numbers Health = 5, Upvote if this helped danglt 185 — 5y
0
I want to downvote your comment but it's not possible User#24403 69 — 5y
0
sad face danglt 185 — 5y

Marked as Duplicate by User#24403, WideSteal321, and xPolarium

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?