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

Issue while loading assets?

assets = {
    131194697, 284055952, 172732271
}
SpawnPosition = Vector3.new(0,0,0)
    wait(5)
    if #assets >= 1 then
    for i = 1, #assets do
        local newItem = game:GetService('InsertService'):LoadAsset(assets[i]):GetChildren()
        if #newItem >= 1 then
        for m = 1, #newItem do
        if newItem[m]:IsA("BasePart") then
            newItem[m].Parent = workspace
            newItem[m].Position = SpawnPosition
        elseif newItem[m]:IsA("Model") then
            newItem[m].Parent = workspace
            newItem[m]:MoveTo(SpawnPosition)
        else
            local model = Instance.new("Model", workspace)
            model.Name = newItem[m].Name
            newItem[m].Parent = model
            model:MoveTo(SpawnPosition) 
            end 
        end
        end
        end
    end

It was working before, but now it's not. Any ideas?

OUTPUT: 12:50:25.750 - Content failed because HTTP 403 (HTTP/1.1 403 Forbidden) 12:50:25.751 - HTTP 403 (HTTP/1.1 403 Forbidden)

10 comments

0

Can you show us the output it is giving? Is it giving any errors?

0

Yes I will show you now. Let me edit the question.

0

I mean It runs on ROBLOX Player, meaning it loads the assets, But part of my script scans the workplace to find the assets and it says that it couldnt find the assets that were loaded. It might be an error on my script, but the assets arent loading when I test it in Studio.

0

Do you have the model?

0

No, I didnt take the model nor did I make it. But it is on sale for Free.

0

Try getting the model then doing it.

0

I will try now.

0

Did that work?

0

Yep! It worked. I also forgot to define one of my variables. Thank you!

0

No problem.

1 answer

If you also get this problem, get the model so it's in your inventory. I had this same problem the other day and found out the answer after 15 minutes of searching.

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