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

How to use games icon in game as a decal? ( easy )

local image = script.Parent.Image
local player = game:GetService("Players").LocalPlayer
local place_id = 920587237 

image = place_id -- error

function telept()
	game:GetService("TeleportService"):Teleport(place_id,player)
end
script.Parent.MouseButton1Click:Connect(telept)

ImageButton I want to use the icon of a game as a decal for the button

1 answer

✓ Accepted answer

No no no, you can't use a place ID for a decal/image. This is because that ID is being used for a place, and not a decal.

Take the game icon and make it a decal. Then use that decal's ID.

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