Morning guys, so i was reading at some code of Ruddev's Battle Royale that is open source, and in Effects, there is a module script about shooting, inside, is a return function? i dont ever have seen something like this, so i ask u guys, does this return the function when i call require? or it has other behaviour? Thanks in advance! Also, let me show you.
return function(item, position, directions, ammo)

1 comment
In module scripts, module scripts return functions to a server script or local script, and then they can access the specific function. I don't know what the function does however, so that's all I can say.