variable=true -- this can be used anywhere local variable=true -- this can be used only in this script function ffffffffffff(a,b,c) if a==variable then othervar="lol" -- this can be used anywhere local vvvvvv="kek" -- this can be used only in this if end end