Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

InsertServer/LoadAsset Help please?

Asked by 8 years ago

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!

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. User#6546 35 — 8y
0
Will do, thanks. lordrex12345 25 — 8y
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? lordrex12345 25 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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

Ad

Answer this question