Essentially as the title says, what is the difference between :
and .
in Module Scripts. Here's what I mean:
01 | local MainModule = { } |
02 |
03 | function MainModule.Test() |
04 | end |
05 |
06 | -- OR |
07 |
08 | function MainModule:Test() |
09 | end |
10 |
11 | return MainModule |
Are they used for different purposes or are they basically the same? All help appreciated! Thanks.