--timer.Value = timer.MaxValue -- refresh added

timer.Value = timer.MaxValue
if child:IsA("BasePart") then
petalz(child.Position) 
end	
end
function OnAdded2(child)
	
	for d = 1, 10 do
		wait(0.1)
			if child:IsA("BasePart") then
				if d == 10 then
					child:Destroy()
				else
				child.Transparency = child.Transparency + 0.1
				end
			end
	end

end
function OnRemoved(child)
if child:IsA("BasePart") then
			str.Value = str.Value  + 1
petalz(child.Position) 
end	
end

script.Parent.ChildAdded:connect(OnAdded)
script.ChildAdded:connect(OnAdded2)
script.Parent.ChildRemoved:connect(OnRemoved)

while script ~= nil do 
	wait(1)
	timer.Value = timer.Value - 1
	if timer.Value == 0 and not script.Parent:findFirstChild("Action") then
		z = script.Parent:GetChildren() 
		for i= 1, #z do 
		if z[i]:IsA("BasePart") and z[i].Name ~= "Eye" and z[i].Name ~= "Ear"  then
			z[i]:Destroy() 
		end
		end 
	end
end
