generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Kill script

Previous Thread :: Next Thread 
Djdj7748412 is not online. Djdj7748412
Joined: 22 Oct 2010
Total Posts: 15
21 Aug 2011 05:05 PM
I tried to do this script but 4 sum reson it dident work!
game.Players.Djdj7748412.Head:Remove()
and it dident kill me!!!
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
21 Aug 2011 05:08 PM
The instance that's inside game.Players is your Player object, and it contains data about your player such as the AccountAge and the MembershipType, as well as a lot of things that you need in your Player. The thing that contains all the Parts that make up your character is, well, your character, which is in game.Workspace.

So you want to be removing the Head from game.Workspace.Djdj77whatever instead of the one in game.Players.

-Like a boss.
Report Abuse
Nexun is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
21 Aug 2011 05:20 PM
@crazypotato4

Or he could access his character through the Character property in his player object.

game.Players.Djdj[numbers here].Character.Head:Remove()

But yes, your way is generally the most used and the better of the two.
Report Abuse
mj21mm is not online. mj21mm
Joined: 21 Jul 2009
Total Posts: 194
21 Aug 2011 05:40 PM
its Game.Workspace.Players

forgot the workspace part.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
21 Aug 2011 06:11 PM
@Creator thread

First, I want to say nice try!I started removing my head.But you don't use game.Players I do game.Workspace

This is how you would remove your head

game.Workspace.miz656.Head:Remove()

You can also do
game.Workspace.miz656:BreakJoints()

game.Workspace.miz656.Torso:Remove()

game.Workspace.miz656.Humanoid.Health = 0

Theres a couple of ways to do it :P
Report Abuse
Nexun is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
22 Aug 2011 10:26 AM
@mj22

No, it's not game.Workspace.Players...
Report Abuse
Jetta765214 is not online. Jetta765214
Joined: 22 Oct 2008
Total Posts: 1855
22 Aug 2011 10:32 AM
In less you put a model in workspace that is name Players and the when a character is added automatically put that character in the model.
Report Abuse
moochoo8 is not online. moochoo8
Joined: 05 May 2008
Total Posts: 92
22 Aug 2011 10:42 AM
game.Players.NAME.Character.Head:Remove()
Report Abuse
jewelycat is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
22 Aug 2011 10:50 AM
Your player doesn't have a head, your character does. game.Workspace.NAME.Head:remove()
Report Abuse
Javeman2000 is not online. Javeman2000
Joined: 03 Sep 2008
Total Posts: 3027
22 Aug 2011 11:12 AM
@jewel, No, moochoo is correct. :)
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
22 Aug 2011 11:13 AM
[ Content Deleted ]
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
22 Aug 2011 03:26 PM
@jewel

You would say that script if your defining Workspace not Players.
Report Abuse
Nexun is not online. Nexun
Joined: 04 Aug 2011
Total Posts: 371
22 Aug 2011 04:07 PM
Agreed with myrco.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
22 Aug 2011 04:14 PM
I love how every thread named 'Kill Script' is bleedin' popluar...HAVE U NO SHAME?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
22 Aug 2011 04:24 PM
Yeah :P
Report Abuse
goodkey is not online. goodkey
Joined: 08 Apr 2011
Total Posts: 7
23 Dec 2013 02:12 AM
If you want to directly kill once person once!
this is the script broken down
game.Workspace.Player1.Humanoid.Health = 0

Broken down
game.Workspace >Locates where the person is
Player1 >whoever the person is put there name there and delete Player1
Humanoid> Tells the script where the health is
Health> you don't want to destroy there the script would break.
= 0 > tells the script how much health to give them
Remember this only works once unless you make it

while true do
game.Workspace.Player1.Humanoid.Health = 0
end
any more questions message me.
Report Abuse
KiwiMeister is not online. KiwiMeister
Joined: 18 Feb 2010
Total Posts: 1464
23 Dec 2013 03:05 AM
change :Remove() to :Destroy()
Report Abuse
russia365 is not online. russia365
Joined: 19 Nov 2012
Total Posts: 49
04 Apr 2014 07:43 PM
game.Workspace.russia365.Humanoid.Health = 0
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
04 Apr 2014 07:48 PM
game.Players.Djdj7748412.Character:BreakJoints()


or in a loop :

while true do
game.Players.Djdj7748412.Character:BreakJoints()
end
Report Abuse
andy2855 is not online. andy2855
Joined: 16 Feb 2014
Total Posts: 15
16 Jun 2014 04:49 PM
Just do...


Game.Workspace.Players.Humanoid.Health = 0 --To kill all in players pack.

Workspace.>name<.Humanoid.Health = 0 --To kill yourself in command prompt.

function repeat()
while true do
Game.Workspace.Players.Parent.Humanoid.Health = 0 --To loopkill everyone in the place
end for good it can never be stopped
unless script is disabled.
[Caution]: Do NOT use!


Game.Players.Parent.Head:destroy()--To destroy everyone in the server once if script
Is enabled...




And i know way more then that but its just too lazy theres lots of ways to kill someone and i just gave you some uniqe more known ones.
Well... have fun committing suicide! :)
Report Abuse
andy2855 is not online. andy2855
Joined: 16 Feb 2014
Total Posts: 15
16 Jun 2014 04:53 PM
O' yeah and about the loop kill above i forgot one thing next to end put until
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
16 Jun 2014 05:00 PM
game.Workspace.Player1.Head:remove() --Test mode
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
16 Jun 2014 05:01 PM
does nobody realise this thread is from 2011.

Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
16 Jun 2014 05:02 PM
I just realized...
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
16 Jun 2014 05:11 PM
2011..

And even 2013...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image