Icon ID is 0 Not Working

I’ve tried to do so it gets the Icon by the RootPlaceID but it doesn’t seem to work any solutions?`

This is My current code:

RemoteEvents.RNG.OnClientEvent:Connect(function(UniverseID)
	local GameInfo = RemoteEvents.GetGameInfo:InvokeServer(UniverseID)
	FrameUI.UnboxFrame.Visible = true
	FrameUI.UnboxFrame.PlaceID.TextLabel.Text = "#"..UniverseID
	FrameUI.UnboxFrame.PlaceNumber.Text = "#1"
	FrameUI.UnboxFrame.PlaceName.Text = GameInfo["name"]
	local Details = MarketplaceService:GetProductInfo(GameInfo["rootPlaceId"])
	local IconID = Details.IconImageAssetId
	print(IconID)
	FrameUI.UnboxFrame.ImageLabel.Image = "rbxassetid://"..IconID
end)
1 Like

What does RemoteEvents.GetGameInfo return?

Its the Game’s Info’s like Place Id, Name, Place Created etc.

Not sure if it’s gonna help, but try testing it out in an actual game experience, instead of Roblox studio. Roblox studio test servers are only local servers, with the ID of 0. Actual game experiences then have real server IDs, therefore should make the icon work. This is personal experience btw. Mine embed loggers, for example, return ServerID of 0 if I’m testing it out in studio.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.