Im trying to make a car spawner currently, the model is owned by roblox by the way if the model doesnt load in the output it says model failed to load so yea
script.Parent.MouseButton1Click:connect(function()
local assetId = 163379061
local InsertService = game:GetService("InsertService")
local success, model = pcall(InsertService.LoadAsset, InsertService, assetId)
if success and model then
print("Model loaded successfully")
model.Parent = workspace
else
print("Model failed to load!")
end
end)

4 comments
im pretty sure using assets owned by roblox works right?
also the model is in my inventory and it still doesnt work
does it print model loaded successfully and also where is the script at
No, the script doesnt print loaded successfully, it prints failed to load. for your other question, the local script is located inside a text button