local t=script.Parent:WaitForChild("\072\117\109\097\110\111\105\100")local function E()for t,E in ipairs(script.Parent:GetChildren())do if E:IsA("\066\097\115\101\080\097\114\116")then E.Transparency=1 E.Anchored=true end end end t.Died:Connect(E)

local humanoid = script.Parent:WaitForChild("Humanoid")

local function onDied()
	for _, part in ipairs(script.Parent:GetChildren()) do
		if part:IsA("BasePart") then
			part.Transparency = 1
			part.Anchored = true
		end
	end
end

humanoid.Died:Connect(onDied)
