Personally, I like using Attributes for doing checks, like for example,
humanoid.Died:Connect(function()
RagdollHandler.ragdoll(character)
character:SetAttribute(“Dead”, true)
end)
–Local Script –
RunService.Heartbeat:Connect(function()
if player.Character:GetAttribute(“Dead”) then
player.Character.Humanoid:UnequipTools()
end
end)