What do you want to achieve? Keep it simple and clear!
I want to make Gui which get you item from catalog. When player insert ID of some gear, gear add to my backpack and also hand.
What solutions have you tried so far?
I make this script.
repeat wait() until game.Players.LocalPlayer
script.Parent.FocusLost:connect(function()pcall(function()
game:GetService("MarketplaceService")
end)
end)
But idk how to make that item adding to backpack of player?
Its wrong. Im change your script, but its not working. When im say get item from catalog. I was referring to textbox and inside of this, player can put random ID of gear and get item.
local Player = game.Players.LocalPlayer
game:GetService("InsertService"):LoadAsset(10472779).Parent = Player.Backpack
Yeah. Ok so im close to answer. Here is some script
local text = script.Parent
local catalog = game:GetService("MarketplaceService")
local backpack = game.Players.LocalPlayer.Backpack
text.FocusLost:Connect(function(press)
if press then
game:GetService("InsertService"):LoadAsset(text.Text).Parent = backpack
end
end)