--Explode into a bunch of star fragments! (Very pretty)


print("Starlight finisher activated!")

local Character = script.Parent

local Debris = (game:FindService("Debris") or game:GetService("Debris"))

local Torso = (Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso"))

if Torso then
	pcall(function()
		local Sparkle = script["Sparkle_Large_Blue"]
		Sparkle.Parent = Torso
		Sparkle:Emit(75)
	end)
	pcall(function()
		local ExplodeSound = script["ExplodeSound"]
		ExplodeSound.Parent = Torso
		ExplodeSound:Play()
	end)
end

for _,v in pairs(Character:GetDescendants()) do
	pcall(function()
		v.Transparency = 1
	end)
	
	pcall(function()
		v.Anchored = true
		v.CanCollide = false
		v.Parent = workspace
		
		Debris:AddItem(v, 3)
	end)
	
end
