I'm currently making a game that heavily uses TextButton GUIs and ImageButton GUIs. How can I get a model to be placed into the game if an ImageButton GUI is clicked?
I assume your model is uploaded on the website. And that the script is a child of the ImageButton
1 | script.Parent.MouseButton 1 Click:connect( function () |
2 |
3 | local Id = 1 -- Replace 1 with your model Id. |
4 | game:GetService( "InsertService" ):LoadAsset(Id).Parent = game.Workspace |
5 |
6 | script.Parent.Active = false |
7 | end ) |