Getting tool from toolbox through script is saying HTTP 403 (Forbidden)

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Hi so i want to make a command to get any tool from toolbox in game

  2. What is the issue? Include screenshots / videos if possible!
    Well the issue its showing Http 403 (Forbidden) for all the tools except the classic sword.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I did look on the forum but didn’t find anything, i used the insertservice to get the asset from the toolbox.

cmds.givetool = function(plr, arguments)
	--local asset = game:GetService("MarketplaceService"):GetProductInfo(tonumber(arguments[1]), Enum.InfoType.Asset)
	local asset = game:GetService("InsertService"):LoadAsset(tonumber(arguments[1]))
	if not(asset:IsA("Tool")) then
		asset = asset:FindFirstChildWhichIsA("Tool")
	end
	print(asset.Name)
	asset:Clone().Parent = plr.Backpack
	asset:Clone().Parent = plr.StarterGear
end

I want your help to find where i am going wrong and also the api service and http request is enabled.

1 Like

Ok guys so i found the problem, basically the insert service load asset function can only let you retrieve models and many of the tools are directly tools unlike the classic sword which is inside a model.
So what i want now is a alternative which can be used to retrieve tools.

1 Like

You should be able to insert any official assets and any model published by the official account ROBLOX, such as this one.
https://create.roblox.com/marketplace/asset/47433/

1 Like

Well i need to insert it through script and insert service can only insert models.

That is a model, and InsertService should also be able to insert gears, hats, etc. Did that asset not work to insert?

exactly but also if you see documentation its only meant to import models