Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.Touched:Connect(function(hit)-- if you touch the brick it wil activate code
- if hit ~= nil then
- local char = hit.Parent -- just a variable
- if char ~= nil then
- local hum = char:FindFirstChild("Humanoid") -- just a variable
- if hum ~= nil then -- if you touch it then...--
- hum.Health = 0 -- kills you
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement