"Asset is not trusted for this place" Module Scripts

Heyo!
So I’ve been trying to work with ModuleScripts.
The ones I use are private, and are owned by the group owner.
The Modules are called in one of the group games.
I was wondering what could cause this problem.
The Modules are being called in Scripts inside ServerScriptService

local ZestoScripts = require(game:GetService("InsertService"):LoadAsset(4123188758).MainModule)

game.Players.PlayerAdded:Connect(function(plr)
    ZestoScripts.checkAccount(plr)
end)

Thank you for your time!
ScrxedDev.

3 Likes

The module must be uploaded to the group to be used in a group game. A group owner cannot use their own modules in a group game as the ownership is treated differently. Same with InsertService: group games cannot insert private assets, even if the group owner owns them.

2 Likes

I remember seeing somewhere that private modules got removed or something. Thats probably why.

The modules did work in studio, they just had the “Not trusted for this place” error in a main game. That’s the weird thing.

Private modules still exist. Third party private module support was dropped. Modules that aren’t public can’t be used by other players or groups.

@ScrxedDev Different error. Asset not trusted means InsertService attempted to load a private asset into a place not directly owned by the same entity that published the model.

Okay, would there be another way to keep the module secure (Not to be in the group) but still be able to used in the group games?

Ok thanks for informing me, I guess I lost it a little bit in my head.

As long as the owner publishes it on the group instead of his account it should work

There are several topics out there that discuss protection of ModuleScript sources which you can browse through. Most of them are relegated to reliance on third party hosting services; fetching entire code bases and parsing them through a Lua-in-Lua VM or loadstring.

So realistically, without relying on self-supported external services or trusting strangers to host your code, no you can’t protect them necessarily.

3 Likes

Alright, thank you for the information! Will browse trough some topics about it.