Im trying to make a button that will kill the player that clicks it, this is what i've got:
script.Parent.MouseClick:Connect(function(click)
click.Parent.Humanoid.Health = 0
end)
The problem is that no matter how many different ways i try to do the second line it always says that Humanoid isn't a a child, can someone tell me how to find it or another way I could do this?

2 comments
I didn't know this so thanks, ill def use it later
yw