Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
14dark14 167
4 years ago
01local image = script.Parent.Image
02local player = game:GetService("Players").LocalPlayer
03local place_id = 920587237
04 
05image = place_id -- error
06 
07function telept()
08    game:GetService("TeleportService"):Teleport(place_id,player)
09end
10script.Parent.MouseButton1Click:Connect(telept)

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

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

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.

Ad

Answer this question