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: is it possible to prevent this

Previous Thread :: Next Thread 
JoeyOrTiger is not online. JoeyOrTiger
Joined: 29 Jun 2009
Total Posts: 641
05 Feb 2016 11:54 AM
is it possible to prevent resets in your game?
like if they click the reset button in the menu, nothing will happen
please help me
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
05 Feb 2016 11:57 AM
You need to name their Humanoid something besides Humanoid. Then it breaks the default reset button.
Report Abuse
JoeyOrTiger is not online. JoeyOrTiger
Joined: 29 Jun 2009
Total Posts: 641
05 Feb 2016 12:00 PM
thank you
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
05 Feb 2016 12:06 PM
Np :D
Report Abuse
CrustyCitation5 is not online. CrustyCitation5
Joined: 03 Feb 2016
Total Posts: 155
05 Feb 2016 01:20 PM
Doing this might mess up a few other things so you might want to keep track of what you named it.
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 01:26 PM
Doing that will completely mess up many CORE scripts!
Do not change that! I believe resetting the character script is in the character, perhaps check it?
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
05 Feb 2016 01:32 PM
@DevSyntax

It's in the CoreGui, you can't mess with it unless you rename the Humanoid.
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 01:35 PM
I am gonna experiment, but don't change humanoid.
ever
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 01:37 PM
Just tested this.
When you die, it removes the "RootJoint" from the HumanoidRootPart
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 01:38 PM
Nvm, it removes all the joints
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
05 Feb 2016 01:47 PM
If you want to disable ROBLOX's reset, you NEED to change the Humanoid :V
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 01:51 PM
LOCAL SCRIPT IN STARTERGUI:

local plr = game.Players.LocalPlayer
repeat wait() until plr.Character and plr.Character:FindFirstChild("Humanoid")
local hum = plr.Character['Humanoid']
local halfmax = hum.MaxHealth/2
hum.HealthChanged:connect(function(health)
if health<= 0 then
hum.Health = hum.Health+99.9
plr.Character:MakeJoints()
end
end)

For some reason, doesn't allow you to set health to 100..


Anyways, what this does is when the health is == 0 it :MakeJoints and "resets" the health.
If you want them to die though, use breakjoints
Report Abuse
Razru is not online. Razru
Joined: 22 May 2013
Total Posts: 492
05 Feb 2016 01:54 PM
i think there is an option


Buzz, we missed the truck! We're not aiming for the truck!
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 01:59 PM
Read mah post
Report Abuse
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
05 Feb 2016 02:01 PM
You must change 'Humanoid' to whatever you've renamed the Humanoid.
Also I believe in the players default animations it has a line that needs Humanoid.
I would just copy the default animation script, change it, make a script that removes the current one and adds it to player, that should fix that.
Report Abuse
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
05 Feb 2016 02:03 PM
Line 14 in Animate:
local Humanoid = waitForChild(Figure, "Humanoid")

change this too,
local Humanoid = waitForChild(Figure, "whatever you renamed humanoid")
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 02:03 PM
No....

don't change the name
Report Abuse
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
05 Feb 2016 02:04 PM
Changing the name is completely fine, as long as you know how to fix the defaults.
Report Abuse
MutigenHD is not online. MutigenHD
Joined: 28 Aug 2014
Total Posts: 516
05 Feb 2016 02:11 PM
Changing the name in Humanoid is probably the best idea, just use Replace to prevent any further errors.
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 02:15 PM
kk I am sticking to what I think.
First of all, why do you even want to disable default reset?
Report Abuse
Casualist is not online. Casualist
Joined: 26 Jun 2014
Total Posts: 4443
05 Feb 2016 02:20 PM
If you make sure that animate script processes the humanoid before you change the name, you don't have to change it at all. Then you'd just have to make sure game logic (i.e. weapons) still works with the new Humanoid name.

@Syntax As much as you abhor changing the Humanoid's name as you perceive it to break a lot of scripts, your solution is no better as now the Humanoid effectively cannot die.

So on one hand, we may have to change "Humanoid" to match whatever the new name is in a few scripts. On the other, we have to set up a damage pipeline that runs through your script so that way we can determine whether or not the Humanoid is actually allowed to die.
Report Abuse
DevSyntax is not online. DevSyntax
Joined: 29 Oct 2011
Total Posts: 1643
05 Feb 2016 02:47 PM
If that is the case then, I do not believe there is an "efficient way to do this"
Report Abuse
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
05 Feb 2016 02:54 PM
I use this method when making Character Customization Screens so the player can not reset well customizing their character.

I'm sure it comes in hand for other things too.
Report Abuse
MutigenHD is not online. MutigenHD
Joined: 28 Aug 2014
Total Posts: 516
05 Feb 2016 02:57 PM
Just disable the ability for players gui's to reset when they do die.
Report Abuse
CardsOfFate is not online. CardsOfFate
Joined: 08 Jul 2014
Total Posts: 761
05 Feb 2016 03:04 PM
I use the Players Character as the Mannequin, that would not work.

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