function CircleClick(q,y,K)coroutine.resume(coroutine.create(function()q.ClipsDescendants=true local b=(script:WaitForChild("\067\105\114\099\108\101")):Clone()b.Parent=q local d=y-b.AbsolutePosition.X local c=K-b.AbsolutePosition.Y b.Position=UDim2.new(0,d,0,c)local E=0 if q.AbsoluteSize.X>q.AbsoluteSize.Y then E=q.AbsoluteSize.X*1.5 elseif q.AbsoluteSize.X<q.AbsoluteSize.Y then E=q.AbsoluteSize.Y*1.5 elseif q.AbsoluteSize.X==q.AbsoluteSize.Y then E=q.AbsoluteSize.X*1.5 end local j=.5 b:TweenSizeAndPosition(UDim2.new(0,E,0,E),UDim2.new(.5,-E/2,.5,-E/2),"\079\117\116","\081\117\097\100",j,false,nil)for q=1,10,1 do b.ImageTransparency=b.ImageTransparency+.01 wait(j/10)end b:Destroy()end))end return CircleClick

function CircleClick(Button, X, Y)
	coroutine.resume(coroutine.create(function()
		
		Button.ClipsDescendants = true
		
		local Circle = script:WaitForChild("Circle"):Clone()
			Circle.Parent = Button
			local NewX = X - Circle.AbsolutePosition.X
			local NewY = Y - Circle.AbsolutePosition.Y
			Circle.Position = UDim2.new(0, NewX, 0, NewY)
		
		local Size = 0
			if Button.AbsoluteSize.X > Button.AbsoluteSize.Y then
				 Size = Button.AbsoluteSize.X*1.5
			elseif Button.AbsoluteSize.X < Button.AbsoluteSize.Y then
				 Size = Button.AbsoluteSize.Y*1.5
			elseif Button.AbsoluteSize.X == Button.AbsoluteSize.Y then																										Size = Button.AbsoluteSize.X*1.5
			end
		
		local Time = 0.5
			Circle:TweenSizeAndPosition(UDim2.new(0, Size, 0, Size), UDim2.new(0.5, -Size/2, 0.5, -Size/2), "Out", "Quad", Time, false, nil)
			for i=1,10 do
				Circle.ImageTransparency = Circle.ImageTransparency + 0.01
				wait(Time/10)
			end
			Circle:Destroy()
			
	end))
end

return CircleClick
