So I Have A KillBrick Script When It Is Touched The Player Dies. What Is My Error If There Is? Sorry For The Title. The Title Filter Is Kinda Bad.
Script.Parent.Touched:Connect(Function(Hit)
If (Hit ~= Nil) Then
If (Hit.Parent) Then
If (Hit.Parent:FindFirstChild("Humanoid")) ~= Nil Then
Hit.Parent:FindFirstChild("Humanoid").Health = (0)
End
End
End
End)
was

4 comments
the number "0" shouldn't be in parenthesis.
Quite surprised you have managed to put a close bracket at the last end if the end wasn't done correctly...
I have OCD too but unfortunately lua requires some lowercase.
Hit ~= Nil is not needed because it will only fire when something hits it lmao so hit would never be nil!