I need help because i want to make a gui that can spawn a certain model id
COMMUNITY QUESTION
How do i spawn a model when ever i click a text/Image button?
1 answer
local SGui = Instance.new("ScreenGui", game.StarterGui)
local button = Instance.new("TextButton", SGui)
button.Size = UDim2.new(0, 100, 0, 50)
button.Position = UDim2.new(0, 500, 0, 100)
button.Text = "Click Me!"
button.MouseButton1Down:connect(function()
--Spawn model code here
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This is not a request site. We help you with a script that you have provided. We don't do everything for you.
I know that