When i use this it gives me the error InsertService cannot be used to load assets from the client
player = game.Players.LocalPlayer
game:GetService("InsertService"):LoadAsset(212641536):GetChildren()[1].Parent = player.Backpack
another thing to mention this is being used in a gui full script below
local GamePassService = game:GetService('GamePassService')
local PlayersService = game:GetService('Players')
local ID = 3265754
local player = game.Players.LocalPlayer
script.Parent.Parent.MouseButton1Click:Connect(function()
if game:GetService("MarketplaceService"):PlayerOwnsAsset(player, ID) then
game:GetService("InsertService"):LoadAsset(212641536):GetChildren()[1].Parent = player.Backpack
else game:GetService("MarketplaceService"):PromptPurchase(player, ID)
end
end)

1 comment
Big duh. You cannot load assets from the client for obvious reasons.