function AutoSizeModule.Resize()local E=0 for R,U in pairs(PluginGui:GetChildren())do if U:IsA("\070\114\097\109\101")then E=E+U.AbsoluteSize.Y end end if PluginGui.AbsoluteSize.Y<E then PluginGui.CanvasSize=UDim2.new(0,0,0,E)end if PluginGui.AbsoluteSize.Y>E then PluginGui.CanvasSize=UDim2.new(0,0,1,0)end end PluginGui.Changed:Connect(AutoSizeModule.Resize)return AutoSizeModule

function AutoSizeModule.Resize()
	local Offset = 0
	for _, Ui in pairs(PluginGui:GetChildren()) do
		if Ui:IsA("Frame") then
			Offset = Offset + Ui.AbsoluteSize.Y
		end
	end
	if PluginGui.AbsoluteSize.Y < Offset then
		PluginGui.CanvasSize = UDim2.new(0,0,0, Offset)
	end
	if PluginGui.AbsoluteSize.Y > Offset then
		PluginGui.CanvasSize = UDim2.new(0,0,1,0)
	end
end
PluginGui.Changed:Connect(AutoSizeModule.Resize)
return AutoSizeModule
