local J=game:GetService("\082\117\110\083\101\114\118\105\099\101")local H=require(script.Parent.Parent.Parent.fusion)local Q=H.Value return function(H)local m=Random.new()local D=Q(1)local n=(require(script.Parent))({Alpha=D,Parent=H})local Z=os.clock()local l=J.Heartbeat:Connect(function()if os.clock()-Z>1 then D:set(m:NextNumber(0,1))Z=os.clock()end end)return function()l:Disconnect()l=nil m=nil n:Destroy()n=nil end end
local RunService = game:GetService("RunService")
local Fusion = require(script.Parent.Parent.Parent.fusion)
local Value = Fusion.Value

return function(parent)
	local rng = Random.new()
	local alpha = Value(1)
	local obj = require(script.Parent)({
		Alpha = alpha,
		Parent = parent,
	})

	local last = os.clock()
	local c = RunService.Heartbeat:Connect(function()
		if os.clock() - last > 1 then
			alpha:set(rng:NextNumber(0, 1))
			last = os.clock()
		end
	end)

	return function()
		c:Disconnect()
		c = nil
		rng = nil
		obj:Destroy()
		obj = nil
	end
end
