Help for plugin GUI

Hello everyone,

I’m creating a thread because I can’t find it. I want to make a plugin, but when it is clicked, I want the GUI to open and when the button is pressed, I want it to create the model on the workspace.

As follows:

image

I have read and tried many articles but none of them worked. I would be very happy if you could help me.
Thank you for reading! :slight_smile:

1 Like

Plugin GUI’s are fairly easy to setup. You can use the CoreGui to store your UI. All you need to do is make your UI as if it were for a regular game. Example:
image
Then to use it, you simply need to parent it to the CoreGui:

local coreGui = game:GetService("CoreGui")
local mainGui = script.PluginGui

mainGui.Parent = coreGui

And you’re done. Then you can use the UI just like you would in a game, with events etc. To spawn some model I would do:

mainGui.SomeModelSpawningButton.MouseButton1Click:Connect(function()
    local model = Instance.new("Model", workspace)
    -- do stuff
end)

No, unfortunately it doesn’t work. :confused:

I want to make a plugin. It doesn’t have to appear in the game. It can be used in the studio.

I meant it can be used as normal game UI, it will appear in studio, not the game.

It works for me, can you show the plugin hierarchy?

You need to create a toolbar. I’d say watch this tutorial, it helped me a lot: How to make a simple roblox widget plugin - YouTube

Hey!! Don’t forget @tapwat4r!! Here’s the video!!

1 Like

well, his vid didnt go that deep

Yeah, just if you want to learn slowly, I’d suggest learning from his video, cuz he went slowly on it.

Read the thread carefully and don’t post spam replies. If I wanted to on a simple level, I would. I needed a detailed video.

I will ask you one more question. How do I transfer the model I want to the workspace when I make a button for the GUI and click the button?

My method works, the issue was that you need to put the plugin inside a folder and publish that, like this:
image

Here’s the file if you just want to drag it into studio - SpawnPart.rbxm. Make sure the plugin gui is initially disabled.

I can’t do anything because it doesn’t work for me. It may be working for you. :confused:

I would be very happy if you could help me with my question. :slight_smile: