Answers for "kill player when something touchd lua"

0

kill player when something touchd lua

function onTouched(Obj)
	local h = Obj.Parent:FindFirstChild("Humanoid")
	if h then
		h.Health = 0
	end
end

script.Parent.Touched:Connect(onTouched)
Posted by: Guest on May-30-2021

Code answers related to "kill player when something touchd lua"

Browse Popular Code Answers by Language