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 » Scripters
Home Search
 

Re: How do i make a player respawn really quickly

Previous Thread :: Next Thread 
bojigglesmister2 is not online. bojigglesmister2
Joined: 26 Jun 2011
Total Posts: 1421
12 Sep 2015 11:06 PM
if someone dies, how do i make there character not break all joints and just go back to the spawn location...?
Report Abuse
TwoRivers is not online. TwoRivers
Joined: 25 Aug 2011
Total Posts: 2821
12 Sep 2015 11:10 PM
player:LoadCharacter()


-TwoRivers/Iterum/Vulnerite/ChiefDelta/Discommodate/100+ accounts
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
12 Sep 2015 11:11 PM
wait_for_death = function(plr)
local listener = plr.Character.Humanoid.Died(function()
plr:LoadCharacter()
wait_for_death()
listener:disconnect()
end)
end
Report Abuse
TwoRivers is not online. TwoRivers
Joined: 25 Aug 2011
Total Posts: 2821
12 Sep 2015 11:13 PM
what the hell phoenix lol

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
local hum = char:WaitForChild("Humanoid")
hum.Died:connect(function()
player:LoadCharacter()
end)
end)
end)


-TwoRivers/Iterum/Vulnerite/ChiefDelta/Discommodate/100+ accounts
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
12 Sep 2015 11:14 PM
Ah, but that version only runs once. Trust me, I just made that mistake like a week ago.

This is exactly what I used:

coroutine.wrap(function()
while wait(1) do
if _player~=nil and _player.Character~=nil and _player.Character:FindFirstChild("Humanoid") and _player.Character.Humanoid.Health==0 then
_player:LoadCharacter()
_player.Character:WaitForChild("ForceField"):Destroy()
else
wait(.8)
end
end
end)()
Report Abuse
TwoRivers is not online. TwoRivers
Joined: 25 Aug 2011
Total Posts: 2821
12 Sep 2015 11:16 PM
THE HELL IS THAT CODE BRO LOL

NAH MAN MY CODE WORKS


-TwoRivers/Iterum/Vulnerite/ChiefDelta/Discommodate/100+ accounts
Report Abuse
bojigglesmister2 is not online. bojigglesmister2
Joined: 26 Jun 2011
Total Posts: 1421
12 Sep 2015 11:17 PM
Both are fine, i just needed the function name.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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