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
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.