Hey,
I'm currently coding a Marketplace and I'm using Marketplace:GetProductInfo() but when I try to get the AssetTypeId it returns the false Id.
Here is my Code:
local Product1 local Product2 local Product3 local Marketplace = game:GetService("MarketplaceService") local PlayerGUI game.Players.PlayerAdded:Connect(function(player) wait(3) PlayerGUI = player.PlayerGui Product1 = PlayerGUI.GUI.Main.FeaturedTab.Product1 Product2 = PlayerGUI.GUI.Main.FeaturedTab.Product2 Product3 = PlayerGUI.GUI.Main.FeaturedTab.Product3 print(Product1.AssetId.Value) local Asset1 = Marketplace:GetProductInfo(Product1.AssetId.Value) print(Asset1.AssetTypeId) end)
The Asset is a Gamepass which can be found here: https://www.roblox.com/game-pass/7567928/Reds-Clothing-GUI
So it should return 34 but it dosen't. It prints 1!
Here is the official Roblox List with all AssetTypeIds: https://developer.roblox.com/en-us/api-reference/enum/AssetType