Question : kill player when something touchd lua
Answered by : motionless-manatee-bjtzd7svok3a
function onTouched(Obj) local h = Obj.Parent:FindFirstChild("Humanoid") if h then h.Health = 0 end
end
script.Parent.Touched:Connect(onTouched)
Source : https://devforum.roblox.com/t/instantly-kill-on-brick-touch/375674 | Last Update : Sun, 06 Jun 21