RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"ServerScriptService.Arena1Script:226: attempt to compare table < table’"
-- The error message is indicating that you're trying to compare a table with another table, which is not allowed in Lua. You can only compare tables using the equality (==) or inequality (~=) operators. Below is a corrected version of your script, assuming you want to compare the AssetId of the T-Shirts. local MarketPlaceService = game:GetService("MarketplaceService") local userTShirts = {} -- assuming this is a list of T-Shirt asset Ids local num = #userTShirts for i = num, 1, -1 do local Asset = MarketPlaceService:GetProductInfo(userTShirts[i]) -- compare the AssetId of the current T-Shirt with a specific Id if Asset.AssetId == someSpecificId then -- do something end end