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

GetLatestAssetVersionAsync code not working?

Hi! So I am trying to use the GetLastestAssetVersion thing, I just found out about it on the Wiki, and well, I'm trying to get it working but its not working, and I am not sure why.. Maybe I used it wrong? Sorry, I'm a noob in Roblox Lua

Hope you guys can help

Code:

local ModelId = 451769518 
local model = game:GetService("InsertService"):GetLatestAssetVersionAsync(ModelId):GetChildren()[1] 
model.Parent = game.Lighting

Output:

> local ModelId = 451769518 
local model = game:GetService("InsertService"):GetLatestAssetVersionAsync(ModelId):GetChildren()[1] 
model.Parent = game.Lighting
12:34:32.316 - InsertService getLatestAssetVersion : Request Failed because HTTP 0 (HTTP 403 (HTTP/1.1 403 Forbidden))
12:34:32.317 - Script 'local ModelId = 451769518 
local model = game:GetService("InsertService"):GetLatestAssetVersionAsync(ModelId):GetChildren()[1] 
model.Parent = game.Lighting', Line 2
12:34:32.318 - Stack End

1 answer

This might be because you and ROBLOX don't own the model which has the id of "451769518". The model must be in your's or ROBLOX's inventory for it to work.

1 comment

0

I've tried it with the models that I have but it just doesn't work

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