When calling the :UploadMod function, you are parsing the UserID. Then within the UploadMod function, you are trying to get the UserID… of the UserID.
Remove .UserID from one of them and it should work
I just fixed that part, but now from this part of my code:
local encoded = serialize.Encode(model,true)
mods:SetAsync(mod_name,encoded,player.UserId)
(the module script code)
It returns this error:
EDIT: I fixed the “Unable to cast to Array” by switching my data to a table!
Thank you for helping with the first error, I didn’t even think about that!