Regarding InsertService and Plugins

Howdy, developers.

I’m currently working on an anti-cheat as a personnel project for fun, but I want to make it accessible to everyone. I plan on updating it overtime, so I’ll be creating a plugin that loads in the newest update.

I tested it, and it does work, but InsertService only works with your own models. Will there be problems with loading it in for people not on my account?

I haven’t tested this on an alt yet, but I figured I should ask ahead of time.

Script for it if anybody really needeed it lol (dont check the model, it’s for testing purposes)

local toolbar = plugin:CreateToolbar("BqAntiCheat V1.0")
local newScriptButton = toolbar:CreateButton("Load Newest Version","Load Newest Version","rbxassetid://6789606469")

local assetId = 5702269130
local insertService = game:GetService("InsertService")

newScriptButton.Click:Connect(function()
	local model = insertService:LoadAsset(assetId)
	model.Parent = workspace	
end)
1 Like

I don’t think LoadAsset allows you to load assets that other people created. As an alternative, since you are making a plugin, you can use game:GetObjects.

2 Likes

Thanks, I’ll be utilizing that in the future. Appreciate it.