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: Death Script

Previous Thread :: Next Thread 
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
04 Jan 2014 05:03 PM
When My Script Executes. It does not respawn the player

Here it is:
p = game.Players:GetChildren()
for i = 1,#p do
p[i].Character.Head:remove()
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
04 Jan 2014 05:06 PM
hello?
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
04 Jan 2014 05:10 PM
Anybody know the probleam?
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
04 Jan 2014 05:13 PM
HELLO??????????????????????????/
Report Abuse
dpearce is not online. dpearce
Joined: 16 Oct 2011
Total Posts: 546
04 Jan 2014 05:31 PM
ANYONE?????? I NEED HELP!
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
04 Jan 2014 05:34 PM
It doesn't kill them either...

for _,v in pairs(Players:GetChildren()) do
if v.Character then
v.Character.Head:remove()
end
end
Report Abuse
PredationX is not online. PredationX
Joined: 09 Sep 2012
Total Posts: 1594
04 Jan 2014 05:58 PM
If you don't want to kill them, use this:

for _,v in pairs(Players:GetChildren()) do
if v:findFirstChild("Humanoid") then
v:LoadCharacter()
end
end
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
04 Jan 2014 06:00 PM
You forgot an end.
Report Abuse
PredationX is not online. PredationX
Joined: 09 Sep 2012
Total Posts: 1594
04 Jan 2014 06:03 PM
No I didn't. It only needs 2.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
04 Jan 2014 06:04 PM
The original script. It should work, with an end.
Report Abuse
PredationX is not online. PredationX
Joined: 09 Sep 2012
Total Posts: 1594
04 Jan 2014 06:07 PM
Oh.
Made a mistake. This should work:

for _,v in pairs(game.Players:GetChildren()) do
if v:findFirstChild("Humanoid") then
v:LoadCharacter()
end
end
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