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

How do i spawn a model when ever i click a text/Image button?

I need help because i want to make a gui that can spawn a certain model id

2 comments

0

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

0

I know that

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.