Alternative to using a global variable

Basically i need to do

Function = function()

	Function()

end

instead of

local Function = function()

	Function()

end

I heard it’s bad practice to use global variables, and i don’t really use it but in this speficic scenario i need to call the function from inside itself, is there a downside to doing it like this?

This’ll work I think:

local Function
Function = function()
    Function()
end

Is there a reason not to just use normal named function syntax?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.