How would i get a tool from the marketplace with the id of the tool?

i’m Doing A Command System And I Wan’t To Know How Would I Copy A Tool From The Marketplace By It’s ID.

Player Chat: Give (himself) 11377306
Player Backpack: Silver Ninja Star of the Brilliant Light

The Chat Part I Alredy Have, But I Don’t Know How To Use The ID To Get The Item.

3 Likes

I think you would use InsertService

2 Likes

Use InsertService to insert the item. The asset must be public or owned by you.

2 Likes

But this works with marketplace tools?

1 Like

As long as they are public assets, yes.

2 Likes
local Tool = InsertService:LoadAsset(ToolID)
Tool.Parent = workspace

Something like this, beacuse it doesn’t seem to work…

1 Like

Is the tool yours? Or owned by you? If not, try reuploading the tool you’re using under your account and try that.

On second thought, try wrapping the code in a pcall and see what it prints.

3 Likes

It’s the marketplace tool, im using:

as an test

It probably works, your just putting it into workspace, not the players inventory, you can also try setting a specific position for you then to pick it up.

1 Like

That should work fine. Like @JAcoboiskaka1121 suggested, try wrapping the call in a pcall and see if you can catch an error. Often times it may be a server issue which isn’t quite exactly an error, but a lack of a response

1 Like

Looking closer to the script, this was an old script that i made that im trying to add things, it’s probably better to do a new one, beacuse it’s really messy, probably just the script not working correctly and not detecting the command, i will do a new one real quick and try again

2 Likes

just finished rescripting it, how do i fix this?


It Worked With Tools, But I’m Curious If It Works With Toolbox Things Just To Do A Insert Command Instead Of A Give One.

Nvm, i looked up, i need to own it or roblox own it.

2 Likes

And it was actualy it not detecting correctly