2DWorlds Forums
Making a Kill Part - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Making a Kill Part (/showthread.php?tid=1086)



Making a Kill Part - Jacob__mybb_import1 - 10-17-2010

Put this script in a part to make it kill anyone that touches it.

Code:
link(script.Parent.Collided, function(h)
    if h.Parent:isA("Character") then
        h.Parent:kill()
    end
end)



RE: Making a Kill Part - dap300 - 01-01-2011

+1 Thanks. Big Grin