Im trying to learn the differce between c++ and lua I’ve noticed that “local” is used alot is in like a function?
local just defines variables locally.
okay thank you
if x then local y = "string" end
y could not be used outside of that if statement.
oh so if you only wanted to just that function on one script you would use local cool. Thanks for the tip