toggle3 = true
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
if hit.Parent:FindFirstChild("Humanoid").Health = 0 then
local Sword = game.ServerStorage.ClassicSword:Clone()
toggle3 = false
Sword.Parent = hit.Parent
end
end)
Error : Workspace.Part.Script:22: 'then' expected near '='

3 comments
https://developer.roblox.com/api-reference/event/Humanoid/Died
This would not be a good idea for the system he wants to do, he wants to detect if the player dies on the block. thus giving the tool. with .Died if player touch button and the player leaves the block and dies he will receive the tool. with .Health he'd only receive the tool if he died on the block.
I didn't understand his description as it said error on line 22, so I just answered his title question.