for f=1,i_total,1 do if math.abs(wiggle_total)>wiggle_i*3 then wiggle_i=-wiggle_i end wiggle_total=wiggle_total+wiggle_i overlay.Position=UDim2.new((0-2*(f/i_total))+wiggle_total/2,0,(0-2*(f/i_total))+wiggle_total/2,-22)overlay.Size=UDim2.new((1+3.5*(f/i_total))+wiggle_total,0,(1.15+3.5*(f/i_total))+wiggle_total,30)wait(.01)end
-- Animate Out, slow
for i = 1, i_total do
	if math.abs(wiggle_total) > (wiggle_i * 3) then
		wiggle_i = -wiggle_i
	end
	wiggle_total = wiggle_total + wiggle_i
	overlay.Position =
		UDim2.new((0 - (2 * (i / i_total)) + wiggle_total / 2), 0, (0 - (2 * (i / i_total)) + wiggle_total / 2), -22)
	overlay.Size =
		UDim2.new((1 + (3.5 * (i / i_total)) + wiggle_total), 0, (1.15 + (3.5 * (i / i_total)) + wiggle_total), 30)
	wait(0.01)
end
