Thanks for the reply Phanx. Upvaluing Visibility solved it. The other way was using
Code:
local function Visibility(self)
instead of
Code:
local Visibility = function(self)
I thought the first one is just syntactic sugar for the second, but apparently it's not just that. Could someone please explain that?