The script works except the Humanoid does not breakjoint when health = 0
local Dummy = game.Workspace.Dummy
local Players = game.Players.LocalPlayer
local Debounce = false
Part.Touched:Connect(function(hit)
local Humanoid = hit.Parent:FindFirstChild("Humanoid")
if Humanoid and Debounce == false then
Debounce = true
Humanoid.Health = Humanoid.Health - 25
if Humanoid.Health == 0 then
Humanoid.Parent:BreakJoints()
end
wait(1)
Debounce = false
end
end)

1 comment
have you tried using Humanoid.BreakJointsOnDeath = true/false?