Hey! I’m currently making an avatar item unequip script.
This is part of the script.
v.Button.MouseButton1Down:Connect(function()
local ProductInfo = mps:GetProductInfo(v.Name,Enum.InfoType.Asset)
local ProductName = ProductInfo.Name
print(ProductName)
if player.Character:FindFirstChild(ProductName) then
player.Character:FindFirstChild(ProductName):Destroy()
Update()
end
end)
So, basically it returns the asset’s name but the item name in the actual player’s character is different, is there any other method I could use to achieve this?