10-17-2010, 02:11 PM
You can now use the kill() member function of a character to kill it, like so:
For example, put this script inside a part to kill anyone that touches it:
Any tools the player has that aren't in the StarterInventory will be removed.
If you want something to happen when a player dies, use their Died event.
Code:
game.Players.Jacob_.Character:kill()
For example, put this script inside a part to kill anyone that touches it:
Code:
link(script.Parent.Collided, function(h)
if h.Parent:isA("Character") then
h.Parent:kill()
end
end)
Any tools the player has that aren't in the StarterInventory will be removed.
If you want something to happen when a player dies, use their Died event.