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: Auto load on characters death?

Previous Thread :: Next Thread 
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
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 is not online. 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 is not online. Subete
Joined: 10 Jul 2011
Total Posts: 917
09 Oct 2014 02:09 PM
LoadCharacter()
Report Abuse
128GB is not online. 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 is not online. 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 is not online. 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
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
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 is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
09 Oct 2014 03:19 PM
Thats almost exactly what I said...
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
09 Oct 2014 03:20 PM
I just read the first post :P
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