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: Stop respawning

Previous Thread :: Next Thread 
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
02 May 2013 03:04 PM
How do I keep a player from respawning?
(Don't say use Game.Players.CharacterAutoLoads = false)
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
02 May 2013 03:06 PM
player.CharacterAdded:connect(function(c)
c:Destroy()
end)

or

player.CharacterAutoLoads = false

~Kill The Clones is the best game on ROBLOX!~
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
02 May 2013 03:08 PM
You could perhaps put the character in Lighting and destroy their Humanoid. Then they can't reset or walk off the map.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
02 May 2013 03:08 PM
I don't want to destroy them, and CharacterAutoLoads is in game.Players not the player itself
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
02 May 2013 03:09 PM
Destroy the character's humanoid

they won't respawn

~Kill The Clones is the best game on ROBLOX!~
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
02 May 2013 03:10 PM
@Get
I made a script so if you die, it makes more joints and sets your health to 100
It keeps you from dying fine, and you can walk around.
The only problem is, you still respawn 5 seconds later
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
02 May 2013 03:10 PM
@Kill
Tried that, then I gave them a new humanoid (Because the point is for them to still be alive)
And they still respawned
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
02 May 2013 03:14 PM
Yes, what I mean is that if someone dies, you wait for that person to respawn and the person's character goes to Lighting and his Humanoid gets destroyed.

Maybe you could also try:
- Put a model in the character
- The model's name will be the character's name
- Clone the character's head into the model
- Make the character's head invisible (and face)
- Put a Humanoid in the model
- Weld the copied head to the original head

And then change your weapon scripts so that not the original humanoid gets hurt, but the humanoid in the added model. If the 'new humanoid' dies, you didn't actually really die because your original humanoid's health is still 100. And then you could for example do what I already mentioned.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
02 May 2013 03:15 PM
The point of this is for it to work in any game not just mine.
Its going to be a free model.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
02 May 2013 03:17 PM
Nevermind, I found a way to do it.
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
02 May 2013 03:17 PM
Oh. I see.

Well then I think we're gonna have a problem. :d
If your Humanoid dies, your welds get destroyed and your head will be disconnected from your torso. I don't think you can do anything about that.
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
02 May 2013 03:17 PM
You did? :o

masterbrain unbuild, here's a ticket
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
02 May 2013 03:20 PM
@Get
I already found a way to fix the weld thing
I used DesendentRemoving so as soon as the welds get removed a new one is made xP
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
02 May 2013 03:21 PM
Yes, but if the Humanoid dies, he would respawn a few seconds later right?
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
02 May 2013 03:26 PM
Um... I just created this now, so I won't be surprised if it doesn't work, but you can still try it.

function dead(player)
if player.Character.Humanoid.Health == 0 then
player.Character:LoadCharacter()
end
end
player.Character.Humanoid.Died:connect(function)
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
02 May 2013 03:27 PM
My siggy! D:

~slop on a rock~
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
02 May 2013 03:27 PM
Lol, fix to my script:

function dead(player)
if player.Character.Humanoid.Health == 0 then
player.Character:LoadCharacter()
end
end
player.Character.Humanoid.Died:connect(dead)
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
02 May 2013 03:28 PM
Then they die. :c
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
02 May 2013 05:49 PM
@Get
Yes, the problem was
They die
The script instantly brings them back to life, walking around and everything
But then they respawn 5 seconds later anyway.
So I needed (And found) a way to stop them from respawning
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