for h=1,#iceParts,1 do local f=iceParts[h]:GetChildren()for h=1,#f,1 do if f[h].className=="\087\101\108\100"then f[h]:Destroy()end end local j=((iceParts[h].Position-iceParts[h].CFrame.p)+Vector3.new(0,1,0)).unit iceParts[h].Velocity=(j+Vector3.new(math.random()-.5,1,math.random()-.5))*20 iceParts[h].RotVelocity=(j+Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5))*10 local H=Instance.new("\066\111\100\121\070\111\114\099\101")H.Force=(j*50)*iceParts[h]:GetMass()H.Parent=iceParts[h]delay(.25,function()H:Destroy()end)end for h=1,#iceParts2,1 do local f=iceParts2[h]:GetChildren()for h=1,#f,1 do if f[h].className=="\087\101\108\100"then f[h]:Destroy()end end local j=((iceParts2[h].Position-iceParts2[h].CFrame.p)+Vector3.new(0,1,0)).unit iceParts2[h].Velocity=(j+Vector3.new(math.random()-.5,1,math.random()-.5))*20 iceParts2[h].RotVelocity=(j+Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5))*10 local H=Instance.new("\066\111\100\121\070\111\114\099\101")H.Force=(j*50)*iceParts2[h]:GetMass()H.Parent=iceParts2[h]delay(.25,function()H:Destroy()end)end EnableMove()IceShatter=Instance.new("\083\111\117\110\100")IceShatter.Name="\073\099\101\083\104\097\116\116\101\114"IceShatter.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..shatterSounds[math.random(1,#shatterSounds)]IceShatter.Parent=Head IceShatter.PlaybackSpeed=1 IceShatter.Volume=1.5 game.Debris:AddItem(IceShatter,10)delay(0,function()IceShatter:Play()end)IceShatter.Ended:connect(function()if script then script:Destroy()end end)
--unfreeze the character
for i = 1, #iceParts do
	local C = iceParts[i]:GetChildren()
	for ii = 1, #C do
		if C[ii].className == "Weld" then
			C[ii]:Destroy()
		end
	end
	local dir = (iceParts[i].Position - iceParts[i].CFrame.p + Vector3.new(0, 1, 0)).unit
	iceParts[i].Velocity = (dir + Vector3.new(math.random() - 0.5, 1, math.random() - 0.5)) * 20
	iceParts[i].RotVelocity = (dir + Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5)) * 10
	local force = Instance.new("BodyForce")
	force.Force = dir * 50 * iceParts[i]:GetMass()
	force.Parent = iceParts[i]
	delay(0.25, function()
		force:Destroy()
	end)
end

for i = 1, #iceParts2 do
	local C = iceParts2[i]:GetChildren()
	for ii = 1, #C do
		if C[ii].className == "Weld" then
			C[ii]:Destroy()
		end
	end
	local dir = (iceParts2[i].Position - iceParts2[i].CFrame.p + Vector3.new(0, 1, 0)).unit
	iceParts2[i].Velocity = (dir + Vector3.new(math.random() - 0.5, 1, math.random() - 0.5)) * 20
	iceParts2[i].RotVelocity = (dir + Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5)) * 10
	local force = Instance.new("BodyForce")
	force.Force = dir * 50 * iceParts2[i]:GetMass()
	force.Parent = iceParts2[i]
	delay(0.25, function()
		force:Destroy()
	end)
end

EnableMove()

IceShatter = Instance.new("Sound")
IceShatter.Name = "IceShatter"
IceShatter.SoundId = "rbxassetid://" .. shatterSounds[math.random(1, #shatterSounds)]
IceShatter.Parent = Head
IceShatter.PlaybackSpeed = 1
IceShatter.Volume = 1.5
game.Debris:AddItem(IceShatter, 10)
delay(0, function()
	IceShatter:Play()
end)
IceShatter.Ended:connect(function()
	if script then
		script:Destroy()
	end
end)
