‹ Back to My Code
plugins lua
local toolbar = plugin:CreateToolbar("Quick Export")

local button = toolbar:CreateButton(
	"Export Selection",
	"Exports the current selection to the output window",
	"rbxassetid://0"
)

button.ClickableWhenViewportHidden = true

local Selection = game:GetService("Selection")

button.Click:Connect(function()
	for _, instance in ipairs(Selection:Get()) do
		print("Exporting:", instance:GetFullName())
	end
end)