Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
10/17/10 - Killing Players
#1
You can now use the kill() member function of a character to kill it, like so:

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.


Messages In This Thread
10/17/10 - Killing Players - by Jacob__mybb_import1 - 10-17-2010, 02:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)