Do local functions override global ones?

Alright so, I basically I have a custom assert function in a module. If I have something like this:

local assert = module.Assert

assert(…)

Would this use my custom function, or would this use the global assert function? I just want it like this so it’s easier to access.

Yes, the script will use your function as it overwrites the global one (in that script scope only).

1 Like

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