--- FUNCTIONS ---


script.Parent.ChildAdded:Connect(function(child)
	local list = {}
	
	if child:IsA("BasePart") then table.insert(list, child) end
	for _,descendant in pairs(child:GetDescendants()) do
		if descendant:IsA("BasePart") then
			table.insert(list, descendant)
		end
	end
	
	repeat task.wait() until child.Anchored == false
	task.wait(1)
	
	for _,item in pairs(list) do
		tween_service:Create(item, TweenInfo.new(3), {Transparency = 1}):Play()
	end
	
	task.wait(3)
	child:Destroy()
end)
