01 | local image = script.Parent.Image |
02 | local player = game:GetService( "Players" ).LocalPlayer |
03 | local place_id = 920587237 |
04 |
05 | image = place_id -- error |
06 |
07 | function telept() |
08 | game:GetService( "TeleportService" ):Teleport(place_id,player) |
09 | end |
10 | script.Parent.MouseButton 1 Click:Connect(telept) |
ImageButton
I want to use the icon of a game as a decal for the button
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.