First argument in module function always passed as second arg

Im running this function, for some reason i have to pass nil for the first argument otherwise it doesnt work, like the first argument is always something thats filtered out

I also have to do this into the other function, because otherwise it will error
image

Any explanation would be helpful, i’ve never had to do this until recently

If you had a function called

function module:something()
end

and call it with

module.something()

The first argument in the module function will be assumed to be an object class, like how you can’t do

Datastore.SetAsync()

Because it would assume to pass the datastore object as first parameter, and then key/ data as 2nd and 3rd instead of 1st and 2nd arguments
So in short, if you have a function like module:something(), you should just call it with

module:something(args)

vice versa with module.something() being called with

module:something()