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: When the character dies, do they delete their old backpack and get a new one?

Previous Thread :: Next Thread 
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
12 Jul 2011 12:51 PM
I think it's happening to me...
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
12 Jul 2011 12:52 PM
Yes. When a player dies, everything in their backpack is removed, and then replaced with all the items in their StarterGear
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
12 Jul 2011 12:56 PM
What about PlayerGui?
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
12 Jul 2011 12:56 PM
Yes, same with PlayerGui..I think..
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
12 Jul 2011 12:57 PM
[ Content Deleted ]
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
12 Jul 2011 05:47 PM
So I have to use .PlayerAdded and clone it into the player just to keep a value true after someone dies? D;
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
12 Jul 2011 06:19 PM
No.
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
12 Jul 2011 06:21 PM
?? Global table maybe? But that's kinda hard.
Report Abuse
DingDong272 is not online. DingDong272
Top 100 Poster
Joined: 08 Dec 2007
Total Posts: 9860
12 Jul 2011 06:21 PM
You can just keep the value inside the Player and update it after the Human dies.
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
12 Jul 2011 06:23 PM
"update it after the Human dies."

How would I do that easier than cloning the value into the player when they join?
Report Abuse
ns001111 is not online. ns001111
Joined: 15 Jan 2011
Total Posts: 2849
12 Jul 2011 06:24 PM
You would need to do the .PlayerAdded :/
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
12 Jul 2011 07:00 PM
Oh, yeah, my bad, mistook for CharacterAdded, but yes, you only put the value on the Player once, unless you mean the Character and not the Player...
Report Abuse
DingDong272 is not online. DingDong272
Top 100 Poster
Joined: 08 Dec 2007
Total Posts: 9860
12 Jul 2011 07:03 PM
You can do a Humanoid.Changed and check if the health value is 0. If it is, loop until its no longer 0.
Report Abuse
rulzalot is not online. rulzalot
Joined: 05 Jul 2009
Total Posts: 6305
12 Jul 2011 07:05 PM
@Dingdong;

Humanoid.Died ..?
Report Abuse
DingDong272 is not online. DingDong272
Top 100 Poster
Joined: 08 Dec 2007
Total Posts: 9860
12 Jul 2011 07:08 PM
No, you don't just want it when its health hits 0, you want to know when it hits 0 and when it goes back to 100/Humanoid.MaxHealth
Report Abuse
rulzalot is not online. rulzalot
Joined: 05 Jul 2009
Total Posts: 6305
12 Jul 2011 07:10 PM
You can do a Humanoid.Changed and check if the health value is 0. > Humanoid.Died

Anyways, you can still do the mentioned tasks with both events
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