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

GetLatestAssetVersionAsync code not working?

Asked by 7 years ago

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

Log in to vote
0
Answered by 7 years ago

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.

0
I've tried it with the models that I have but it just doesn't work kevincatssing 10 — 7y
Ad

Answer this question