|
| 27 Apr 2013 06:35 PM |
PlayerAdded+PlayerRemoving or ChildAdded+ChildRemoved |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 27 Apr 2013 06:36 PM |
| depends what your you want to happen on those events |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 27 Apr 2013 07:04 PM |
| so which 2 are best for saving data |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|