All I know is local variables are faster by a bit. But what's the overall difference, and should I use one over the other. What I do is use local but i don't know if I should keep doing it.
COMMUNITY QUESTION
What's the real difference between local and global variables?
1 answer
Local variables only apply in the function or loops or if statements while Global variables are for interacting with the entire script
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
The difference between these two can be found all over the Internet, I don't need to post one. Roblox Wiki has one: https://www.robloxdev.com/articles/Scope