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

Error when inserting a mesh part using insert service?

Asked by 4 years ago
Edited 4 years ago

Hello, for some reason I get an error when I try to insert a mesh part from the library using InsertService. Here is the code I've been trying to use without success:

local InsertService = game:GetService("InsertService")
local onCooldown = false

script.Parent.Touched:Connect(function(hit)
    if not onCooldown and hit.Parent:FindFirstChild("Humanoid") then
        onCooldown = true
        local model = InsertService:LoadAsset("430091329")
        model.Parent = game.Workspace
        wait(1)
        onCooldown = false
    end
end)

The error shown on the output is the following: 17:13:52.939 - Mesh Manager: http request failed, contentid: 'rbxassetid://430091329', exception: HTTP 403 (Forbidden)

Any help on why my script is not working or any alternative way to fetch the MeshId and TextureId of a MeshPart from the roblox meshes library would be greatly appreaciated.

0
Just for reference, the Mesh is not Offsale. https://www.roblox.com/library/430091329/Meshes-body (For other people's knowledge) killerbrenden 1537 — 4y
1
i think you can only insert roblox items. (e.g, hats, gear, models and meshes by roblox) 123nabilben123 499 — 4y

Answer this question