How to get PlaceID then use it to find the game's icon/thumbnail

Hello!
I was curious how you would be able to find a game’s thumbnail (and or) icon to use in a small game I’m making to play with some of my friends for fun. The game is about a random game teleporter, and it will show you stats about the random game and give the ability to teleport to it for about 10 seconds before generating a new game.

Current Script
local TeleportService = game:GetService("TeleportService")
while wait(1) do
	local rnger = math.random(100000, 7000000)
	local PlaceID = rnger
	script.Parent.MouseClick:Connect(function(player)
		TeleportService:Teleport(PlaceID, player)
	end)
end
Place of the game I'm trying to re-create

Super Place Roulette

2 Likes

Try this:

local rnger = math.random(100000, 7000000)
local PlaceID = rnger

local thumbnail = "https://assetgame.roblox.com/Game/Tools/ThumbnailAsset.ashx?aid="..PlaceID .."&fmt=png&wd=420&ht=420"
4 Likes

Thank you! It worked.
image
Now it’s time to figure out how to find the name of the place…

3 Likes

You’re welcome! If you can’t figure it out then remember to make a new topic!

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