I have a part that I'm moving in a building, an explosion basically. I want it to pass everything, and it does that normally. But when I added the script to kill any players it touches, it goes above the building.
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Humanoid.Health = 0
table.remove(_G.foundplayers, game.Players[hit.Name])
end
end)
^ in the brick

1 comment
hit.Parent.Humanoid.Health = 0line 3 :P