function CircleClick(K,D,O)coroutine.resume(coroutine.create(function()K.ClipsDescendants=true local r=(script:WaitForChild("\067\105\114\099\108\101")):Clone()r.Parent=K local l=D-r.AbsolutePosition.X local V=O-r.AbsolutePosition.Y r.Position=UDim2.new(0,l,0,V)local M=0 if K.AbsoluteSize.X>K.AbsoluteSize.Y then M=K.AbsoluteSize.X*1.5 elseif K.AbsoluteSize.X<K.AbsoluteSize.Y then M=K.AbsoluteSize.Y*1.5 elseif K.AbsoluteSize.X==K.AbsoluteSize.Y then M=K.AbsoluteSize.X*1.5 end local y=.5 r:TweenSizeAndPosition(UDim2.new(0,M,0,M),UDim2.new(.5,-M/2,.5,-M/2),"\079\117\116","\081\117\097\100",y,false,nil)for K=1,10,1 do r.ImageTransparency=r.ImageTransparency+.01 wait(y/10)end r:Destroy()end))end return CircleClick
-- ReplicatedStorage --
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
