18:42:07.786 - Argument 1 missing or nil 18:42:07.789 - Stack Begin 18:42:07.789 - Script 'ReplicatedFirst.GuiGearGiverSCRIPT', Line 13
local playergui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
playergui.ScreenGui2.Frame.Button.MouseButton1Click:connect(function(click)
game.Players.LocalPlayer.PlayerGui.ScreenGui2.Enabled = false
local id= game.Players.LocalPlayer.PlayerGui.ScreenGui2.Frame.ID.Text
local backpack = game.Players.LocalPlayer.Backpack
local gearId = tonumber(id)
local root = game:GetService("InsertService"):LoadAsset(gearId)
root.Name = "InsertedObject" .. gearId
root.Parent= backpack

3 comments
I would appreciate a more specific answer.
I'm just posting to say what @j236 said was pretty rude and that's not how people should act around here.
Don't start a flame war guys.