I have a problem and it is that I am trying to make a system that tells me in “real time” how many sales some items have, clearly they are pre-selected items, the thing is that not even in
https://api.roproxy.com/Marketplace/ProductInfo?assetId=11379324754 I get the sales, that is if I get all the info, but it comes out as Sales 0
cuando pruebo el script en el studio funciona bien y me cargan las sales
pero cuando estoy ya en server no me salen
this is what i’ve made:
local market = game:GetService("MarketplaceService") --Gets marketplace service
--Locals of the parts to get values and change the text
local theeye = workspace["TheEye Sales Counter"]
local chilemorron = workspace["ChileMorron Sales Counter"]
local disgustedface = workspace["Disgusted Face Counter"]
local theeyeid = workspace["TheEye Sales Counter"].ItemId.Value
local chilemorronid = workspace["ChileMorron Sales Counter"].ItemId.Value
local disgustedfaceid = workspace["Disgusted Face Counter"].ItemId.Value
--function that changes the value
function functionxd()
local theeyesales = market:GetProductInfo(theeyeid, Enum.InfoType.Asset)
local chilemorronsales = market:GetProductInfo(chilemorronid, Enum.InfoType.Asset)
local disgustedfacesales = market:GetProductInfo(disgustedfaceid, Enum.InfoType.Asset)
theeye.SurfaceGui.TextLabel.Text = theeyesales.Sales.." Sales"
chilemorron.SurfaceGui.TextLabel.Text = chilemorronsales.Sales.." Sales"
disgustedface.SurfaceGui.TextLabel.Text = disgustedfacesales.Sales.." Sales"
end
-- every 2 seconds execute the above function
while true do
wait(2)
functionxd()
end