function die(hit)
if hit.Parent:FindFirstChild("Huminoid") then
hit.Parent.Head:Destroy()
end
end
die()
I am trying to make a function that kills the player when they touch the parent of this script but it keeps on saying: Workspace.Part.Script:2: attempt to index local 'hit' (a nil value)

1 comment
Could it possibly be the fact you misspelt Humanoid?