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: New Respawn Function

Previous Thread :: Next Thread 
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
04 May 2014 09:51 PM
I know there is a way to edit the set time that a player remains dead and set a new respawn time. So is there a way to create a new respawn function all together? Like respawn upon clicking a GUI button.
Report Abuse
NeoEclipse is not online. NeoEclipse
Joined: 09 Apr 2012
Total Posts: 5407
04 May 2014 09:53 PM
player:LoadCharacter()

respawns the player instantly, does not kill it.

Or if you want a delay

wait(3)
game.Players.NeoEclipse:LoadCharacter()
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
04 May 2014 09:54 PM
But the thing with load character is if the wait is longer than 5 seconds it will load the character 2 times
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
04 May 2014 09:56 PM
you might have to delete the character on death then in x amount of seconds respawn with loadcharacter
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
04 May 2014 09:59 PM
http://wiki.roblox.com/index.php/CharacterAutoLoads_(Property)
Report Abuse
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
04 May 2014 10:01 PM
Oh boy, 128GB, thanks for the link! Also, do you know the link for the wiki page to default character customization? To get rid of anything the user added to the character (inducing hats, clothes, and body colors).
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
04 May 2014 10:20 PM
I don't believe there is a wiki link for exactly that
But you could make it using these

http://wiki.roblox.com/index.php/PlayerAdded_(Event)
http://wiki.roblox.com/index.php/CharacterAdded_(Event)
http://wiki.roblox.com/index.php?title=Loops
http://wiki.roblox.com/index.php/API:Instance/IsA

Basically, when a player joins the game, use character added on them, then loop through everything in their character and us IsA to to check

if Object:IsA("Hat") then -- example

then destroy the object
Report Abuse
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
04 May 2014 10:22 PM
@128GB,

There is a thing similar to CharacterAutoLoads that you can set for the character to be null, but I forgot what it was... I used it about 6 months ago...
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
04 May 2014 10:24 PM
Oh right
http://wiki.roblox.com/index.php/CharacterAppearance_(Property)
Report Abuse
Zorbon61 is not online. Zorbon61
Joined: 05 Jun 2012
Total Posts: 321
04 May 2014 10:24 PM
Just make them spawn with a custom appearance set to '-1' rather than their userID.
Report Abuse
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
04 May 2014 10:26 PM
Don't believe that's it either. I am going to look through things and see if I can find it. If I do I will tell you for future reference.
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
04 May 2014 10:28 PM
Yes, use character appearance.
What I did was made an alt and changed it to look however I wanted, and set the CharacterAppearance to it.
The thing is though if you set it when a player is added, you will have to kill/respawn the player for it to show.
Report Abuse
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
04 May 2014 10:34 PM
Alright, found exactly what I wanted. It is a function to set the character to look like the class "noob" model. It goes into a player entrance function.


Player.CanLoadCharacterAppearance = false
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