How would I edit the classic sword script to solve this issue?

Yes, thank you. So technically i dont even have to use humanoid.died though if i just use the respawn connection right?

if you want an instant respawn, then keep it

1 Like

Ok, thank you so much! This was very helpful.

1 Like

Not gonna read all the past posts. Too much reading.

My two cents- hard code something like this into the classic sword. Don’t simply copy & paste obviously.

function BringsBelowZero(hum, dmg, killer)
    if hum == nil or killer == nil then return end
    if not ((hum.Health - dmg) > 0) then
        hum.Health = 1
    else
        hum.Health -= dmg
    end
end
1 Like

Thanks for helping, I found another solution easier though with using connections, especially since I am planning on adding other weapons like the sword, where I don’t want to struggle in reading and editing their scripts. But! Good to know for the future or incase i want to switch methods.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.