|
| 09 Oct 2014 02:08 PM |
| What do I add so you don't have to manually load again when you die. |
|
|
| Report Abuse |
|
|
Vulnerite
|
  |
| Joined: 05 Nov 2007 |
| Total Posts: 11492 |
|
|
| 09 Oct 2014 02:09 PM |
died event player:LoadCharacter()
vulnerite AKA keith | tons of deleted accounts | i do stuff |
|
|
| Report Abuse |
|
|
Subete
|
  |
| Joined: 10 Jul 2011 |
| Total Posts: 917 |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 09 Oct 2014 02:58 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character.Humanoid.Died:wait() player:LoadCharacter() end) end) |
|
|
| Report Abuse |
|
|
Sinblade
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 2782 |
|
|
| 09 Oct 2014 02:59 PM |
| Would LoadCharacter() keep all the same values that the original player had? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 09 Oct 2014 03:08 PM |
| It would be the same as if they waited to respawn |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2014 03:11 PM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) char['Humanoid'].Died:connect(function() plr:LoadCharacter() end) end) end) |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 09 Oct 2014 03:19 PM |
| Thats almost exactly what I said... |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2014 03:20 PM |
| I just read the first post :P |
|
|
| Report Abuse |
|
|