function AutoSizeModule.Resize()local K=0 for r,N in pairs(PluginGui:GetChildren())do if N:IsA("\070\114\097\109\101")then K=K+N.AbsoluteSize.Y end end if PluginGui.AbsoluteSize.Y<K then PluginGui.CanvasSize=UDim2.new(0,0,0,K)end if PluginGui.AbsoluteSize.Y>K then PluginGui.CanvasSize=UDim2.new(0,0,1,0)end end PluginGui.Changed:Connect(AutoSizeModule.Resize)return AutoSizeModule
--[AUTO SIZE]--
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
