humanoid.Died:Connect(function()stepped_con:Disconnect()leftshoulderclone:Destroy()rightshoulderclone:Destroy()viewmodel:Destroy()if rigtype=="\082\049\053"then if torso:FindFirstChild("\087\097\105\115\116")then torso.Waist.Enabled=true torso.Anchored=false end armtransparency=0 visiblearms(false)else if rightshoulder then rightshoulder.Enabled=true end if leftshoulder then leftshoulder.Enabled=true end larm.Anchored=false rarm.Anchored=false armtransparency=0 visiblearms(false)end end)

humanoid.Died:Connect(function()
	stepped_con:Disconnect()
	leftshoulderclone:Destroy()
	rightshoulderclone:Destroy()
	viewmodel:Destroy()
	if rigtype == "R15" then
		if torso:FindFirstChild("Waist") then
			torso.Waist.Enabled = true
			torso.Anchored = false
		end
		armtransparency = 0
		visiblearms(false)
	else
		if rightshoulder then
			rightshoulder.Enabled = true
		end
		if leftshoulder then
			leftshoulder.Enabled = true
		end
		larm.Anchored = false
		rarm.Anchored = false
		armtransparency = 0
		visiblearms(false)
	end
end)

