Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Asset.Title returning nil? Please help!

I'm trying to check forever if an asset's name is house, but the asset's name keeps returning nil!

local updateMsg = 'AWWWWWWWW'
while wait(1) do
	local e = game.MarketplaceService:GetProductInfo(1532392008,Enum.InfoType.Asset)
	if e.Title ~= 'house' then
		print(e.Title)
		print(updateMsg)
	end
end

I added print e.Title to debug, and it kept printing nil. Any help would be appreciated!

1 answer

✓ Accepted answer

The Name of the asset in the array is indexed as 'Name', not 'Title'.

print(e.Name)

1 comment

0

Thanks a lot!

This discussion is preserved as it was. New answers, comments, and votes are closed.