How to create a block that kills you in Roblox (easy tutorial)
Script:
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then -- if a humanoid exists, then
humanoid.Health = 0 -- damage the humanoid
end
end
script.Parent.Touched:connect(onTouch)
Join the discord-
/ discord
Follow me on twitter-
/ toomuchgaming14
Thanks for watching :)