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

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

Asked by 9 years ago

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

0
This is not a request site. We help you with a script that you have provided. We don't do everything for you. minikitkat 687 — 9y
0
I know that Emprium 0 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago
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)

Ad

Answer this question