Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

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)
Source by devforum.roblox.com #
 
PREVIOUS NEXT
Tagged: #kill #player #touchd #lua
ADD COMMENT
Topic
Name
8+8 =