local T=script.Parent local O=require(T.Packages.Roact)local a=require(T.Components.MainPlugin)local D=plugin:CreateToolbar("\067\111\108\108\105\115\105\111\110 \071\114\111\117\112\115")local w=D:CreateButton("\116\104\105\114\100\080\097\114\116\121\067\111\108\108\105\115\105\111\110\071\114\111\117\112\115\084\111\103\103\108\101\087\105\100\103\101\116","\067\111\108\108\105\115\105\111\110 \071\114\111\117\112\115","\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\067\111\108\108\105\115\105\111\110\071\114\111\117\112\115\069\100\105\116\111\114\047\084\111\111\108\098\097\114\073\099\111\110\046\112\110\103","\084\111\103\103\108\101 \087\105\100\103\101\116")w.ClickableWhenViewportHidden=true local v=O.createElement(a,{Button=w})local H=O.mount(v,nil)plugin.Unloading:Connect(function()O.unmount(H)end)
local Plugin = script.Parent

local Roact = require(Plugin.Packages.Roact)
local MainPlugin = require(Plugin.Components.MainPlugin)

local toolbar = plugin:CreateToolbar("Collision Groups")
local button = toolbar:CreateButton(
	"thirdPartyCollisionGroupsToggleWidget",
	"Collision Groups",
	"rbxasset://textures/CollisionGroupsEditor/ToolbarIcon.png",
	"Toggle Widget"
)
button.ClickableWhenViewportHidden = true

local main = Roact.createElement(MainPlugin, {
	Button = button,
})

local handle = Roact.mount(main, nil)

plugin.Unloading:Connect(function()
	Roact.unmount(handle)
end)
