|
| 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 |
|
|
|
| 05 Feb 2016 11:57 AM |
| You need to name their Humanoid something besides Humanoid. Then it breaks the default reset button. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 05 Feb 2016 01:38 PM |
| Nvm, it removes all the joints |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2016 01:47 PM |
| If you want to disable ROBLOX's reset, you NEED to change the Humanoid :V |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 05 Feb 2016 02:03 PM |
No....
don't change the name |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 05 Feb 2016 03:04 PM |
I use the Players Character as the Mannequin, that would not work.
|
|
|
| Report Abuse |
|
|