You can write your topic however you want, but you need to answer these questions:
-
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 -
What is the issue? Include screenshots / videos if possible!
Well the issue its showingHttp 403 (Forbidden)
for all the tools except the classic sword.
-
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.