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: Respawn time

Previous Thread :: Next Thread 
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
24 Nov 2012 06:43 PM
What is the normal respawn time / how do I change it

(Dont say you cant, Crazyman32 (Or someone) made a script to do just this)
Report Abuse
thumper10 is not online. thumper10
Joined: 17 Apr 2009
Total Posts: 3304
24 Nov 2012 06:55 PM
There's a lovely property called CharacterAutoLoads. You should look into it.

~ We're all immortal. We're just stuck in full screen. (Droban/Corecii)
Report Abuse
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
24 Nov 2012 07:00 PM
Where is it?
Report Abuse
thumper10 is not online. thumper10
Joined: 17 Apr 2009
Total Posts: 3304
24 Nov 2012 07:02 PM
There is ONE problem with CharacterAutoLoads: the player has to stare at the "Waiting for Character...". There's really no way around it that doesn't involve loading the Character first.

~ We're all immortal. We're just stuck in full screen. (Droban/Corecii)
Report Abuse
thumper10 is not online. thumper10
Joined: 17 Apr 2009
Total Posts: 3304
24 Nov 2012 07:02 PM
game.Players.CharacterAutoLoads = false

~ We're all immortal. We're just stuck in full screen. (Droban/Corecii)
Report Abuse
CaptainSandbox is not online. CaptainSandbox
Joined: 08 Oct 2012
Total Posts: 908
24 Nov 2012 07:05 PM
That just makes them stay dead though lol...
Report Abuse
thumper10 is not online. thumper10
Joined: 17 Apr 2009
Total Posts: 3304
24 Nov 2012 07:30 PM
You must manually load the character each time. Put this in a Regular Script and edit the variables, I just threw this together:

local respawnTime = 5

function waitForDeath(char)
char.Humanoid.Died:connect(function() wait(respawnTime) game:GetService("Players")[char.Name]:LoadCharacter() end)
end

game:GetService("Players").PlayerAdded:connect(function (player)
wait()
player.CharacterAdded:connect(waitForDeath)
player:LoadCharacter()
end)


~ I ate Sorcus ~
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