I’m trying to learn scripting. It is very hard, and I tried to make this deathblock as a frist try. But something isn’t working as it should. I tried to make it so it only kills me when I touch it. I would be so thankful if someone is able to help me with my mistakes.
function kill(player)
Player.Parent.Humanoid.Health = Player.Parent.Humanoid.Health == -100
Script.Parent.Touched.Connect(kill)
end

2 comments
It did! Thank you. This defenently helped me with my scripting! :)
Nice, although I think the "and" isn't necessary to make a kill script. You can just use break joints.