I’m working on a custom personal plugin that uses a dockwidget to prompt an image upload that would only be visible to studio users, for example uploading a build plan to an imagelabel on the dock
I’ve created the button and all that, but I can’t find any way to prompt the image upload thing, is it possible?
Well for starters, you can use the code below to get the GUI open.
local changeHistoryService = game:GetService("ChangeHistoryService")
local toolbar = plugin:CreateToolbar("PLUGIN")
local pluginButton = toolbar:CreateButton(
"Part Creator",
"Create a part.",
"http://www.roblox.com/asset/?id=5729893601",
"Open GUI"
)
local createPartGui = script.Parent
createPartGui.Parent = game.CoreGui
local cooldown = false
pluginButton.Click:Connect(function()
createPartGui.Enabled = not createPartGui.Enabled
createPartGui.CreatePartButton.MouseButton1Click:Connect(function()
if cooldown then return end
cooldown = true
Instance.new("Part", workspace)
changeHistoryService:SetWaypoint("Part has been created.")
wait(0.1)
cooldown = false
end)
end)
Then you can hopefully manage to get the other things working!