Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

InsertServer/LoadAsset Help please?

Hello-

I've been trying to create a script allows me to load a model within any place I want. My main purpose for doing this was to load a place for a "Group Game." I was able to load the model just fine in one of my own places but when I transferred the script over to a "Group" place, I received the following error shown here:

Link

The following is the basic layout of my model-loading code:

local loaded = false
local model
local success, err = pcall(function()
  model = game:GetService("InsertService"):LoadAsset(431112272)
end)

if success then

model.Parent = workspace
  print("successfully inserted model")

else
  warn("unable to insert model because " .. err)
end

Despite research into the error, I haven't been able to fix it. Any help offered is appreciated. Thanks!

3 comments

0

Doesn't look like an issue with the script, but rather an internal issue with Roblox. Report it to Roblox and see what they say.

0

Will do, thanks.

0

So I was able to get the loader to work while using the Test function in studio but it still doesn't work when I enter into the actual game?

1 answer

To insert an asset, the owner of a game must own the asset. Upload the model to your group.

This discussion is preserved as it was. New answers, comments, and votes are closed.