local w=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local j=require(w.Packages.GooeyParticles)local i={Rotation=NumberRange.new(-360,360),Lifetime=NumberRange.new(.3,.5),Image="\114\098\120\097\115\115\101\116\105\100\058\047\047\050\052\049\054\050\057\048\053\051",Size=NumberSequence.new({NumberSequenceKeypoint.new(0,100),NumberSequenceKeypoint.new(1,0)});Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})}return function(w)local b=Instance.new("\084\101\120\116\066\117\116\116\111\110")b.Size=UDim2.fromOffset(200,50)b.BackgroundColor3=Color3.new(1,1,1)b.Position=UDim2.fromScale(.5,.5)b.AnchorPoint=Vector2.new(.5,.5)b.Text="\067\108\105\099\107 \109\101\033"b.Font=Enum.Font.Gotham b.TextSize=20 b.ZIndex=2 b.Parent=w local c=Instance.new("\085\073\067\111\114\110\101\114")c.CornerRadius=UDim.new(0,4)c.Parent=b local t=b.MouseButton1Click:Connect(function()j.Emit(b,UDim2.fromScale(.5,.5),i,20)end)return function()t:Disconnect()t=nil b:Destroy()b=nil end end
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local GooeyParticles = require(ReplicatedStorage.Packages.GooeyParticles)

local PARTICLE_PROPS = {
	Rotation = NumberRange.new(-360, 360),
	Lifetime = NumberRange.new(0.3, 0.5),
	Image = "rbxassetid://241629053",
	Size = NumberSequence.new({
		NumberSequenceKeypoint.new(0, 100),
		NumberSequenceKeypoint.new(1, 0)
	}),
	Transparency = NumberSequence.new({
		NumberSequenceKeypoint.new(0, 0),
		NumberSequenceKeypoint.new(1, 1)
	}),
}

return function(t)
	local button = Instance.new("TextButton")
	button.Size = UDim2.fromOffset(200, 50)
	button.BackgroundColor3 = Color3.new(1, 1, 1)
	button.Position = UDim2.fromScale(0.5, 0.5)
	button.AnchorPoint = Vector2.new(0.5, 0.5)
	button.Text = "Click me!"
	button.Font = Enum.Font.Gotham
	button.TextSize = 20
	button.ZIndex = 2
	button.Parent = t

	local uiCorner = Instance.new("UICorner")
	uiCorner.CornerRadius = UDim.new(0, 4)
	uiCorner.Parent = button

	local connection = button.MouseButton1Click:Connect(function()
		GooeyParticles.Emit(button, UDim2.fromScale(0.5, 0.5), PARTICLE_PROPS, 20)
	end)

	return function()
		connection:Disconnect()
		connection = nil
		button:Destroy()
		button = nil
	end
end

