I've just started to fiddle around with modules, and I'm wondering whether there's a difference between doing
function module:foo()
print("Hello World!")
end
and
function module.foo()
print("Hello World!")
end
They both seem to do the same thing when called from a server/local script. Is there a difference, or is it just preference? And if there is a difference, when do you use which?

1 comment
Thanks.