a = 1
b = 2
c = 3

function hi()
	print("hi")
end

print(getfenv(hi) == getfenv())

And that prints "true". So, how would I use getfenv with a function, and why would I do that?