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: which is better

Previous Thread :: Next Thread 
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
27 Apr 2013 06:35 PM
PlayerAdded+PlayerRemoving
or
ChildAdded+ChildRemoved
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
27 Apr 2013 06:36 PM
PlayerAdded glitches a lot...
I prefer child added.

But i prefer PlayerRemoving because you can save data using that event.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
27 Apr 2013 06:36 PM
depends what your you want to happen on those events
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
27 Apr 2013 06:36 PM
People say PlayerRemoving is not reliable, someone said sorcus said that too
You can't use ChildRemoved for saving data?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
27 Apr 2013 06:38 PM
Not really. Because when ChildRemoved is called the player is already gone(Usually) when you are trying to save the data. So you end up trying to save to nil.

I find that PlayerRemoving works fine. 99.9/100 times it will function correctly...
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
27 Apr 2013 07:04 PM
so which 2 are best for saving data
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
27 Apr 2013 07:05 PM
saving/loading
Report Abuse
chaoticregandpledge is not online. chaoticregandpledge
Joined: 04 Dec 2009
Total Posts: 2894
27 Apr 2013 07:18 PM
Don't save data when the player is leaving; that's a terrible idea. Save data after something happens.

Ex) Player gets a kill. Save data
Ex2) Player levels up. Save data

Do no wait for the player to leave; too many things can go wrong. What if they suddenly lose connection and the .PlayerRemoving event was never fired? An angry player sends an angry message, that's what.

tl;dr

save when important stuff happens

--
http://www.roblox.com/Innocent-place?id=23319537 ~ Innocence
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
27 Apr 2013 07:26 PM
ntl;dr

not to long, did read.

still I don't know how i could do that
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