Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I remove the reset abillity?

Asked by 8 years ago

What I have: Standard animations (The standard ROBLOX Animations you have in almost EVERY GAME), Detain tool, (moves players), Baton (damage based), radio (to talk to others with this radio...), Fists (damage based), Shank (damage based), Cigar (Doesn't animate character)

Any help!? Please also tell me HOW to do it, from where to end, I want your explanations on how to do it. like this (this is just a random explanation):

ROBLOX Studio>Players>Humanoid

4 answers

Log in to vote
1
Answered by 8 years ago

According to a ROBLOX Wiki article, there are two ways to remove the reset ability:

  1. Change the name of the Humanoid to something other than Humanoid.

  2. When the humanoid changes, change the player's health back to the default health and recreate the characters joints.


Method 1:

You will need to change the name of the Humanoid when the character is added. This can be done from a normal script. This method will actually stop the reset from working since ROBLOX can't find the humanoid.

game.Players.PlayerAdded:connect(function(plr) --Fires a function when a player is added, plr is the player that was added.
    plr.CharacterAdded:connect(function(char) --Fires a function when the player's character has spawned in or respawned, char is the character.
        char:WaitForChild("Humanoid").Name = "NotHumanoid" --Change the name of the humanoid.
    end)
end)

However, you will need to re-script certain parts of your game to accommodate the change of the Humanoid's name.


Method 2:

This is a more complex method, where the player does technically "die", but their reset is negated because their health is restored and their character doesn't fall apart.

game.Players.PlayerAdded:connect(function(plr) --Fires a function when a player is added, plr is the player that was added.
    plr.CharacterAdded:connect(function(char) --Fires a function when the player's character has spawned in or respawned, char is the character.
        char:WaitForChild("Humanoid").Died:connect(function() --Fires a function when the player dies.
            char.Humanoid.Health = char.Humanoid.MaxHealth --Set the health of the player to MaxHealth.
            char:MakeJoints() --Stops the character from falling apart.
    end)
end)

This method is less reliable than the first one since the player does die and it doesn't guarantee that the reset won't occur.


As stated by ROBLOX, you should not try to negate the reset ability. Instead, you should work around the reset ability, adapting your game to work even if someone resets their character.


I hope my answer has helped you. If it helped you, upvote it. If it solved the issue, be sure to accept it.

0
I'll accept it, but the thing is I want ROBLOX's NEWEST animations so that its solved. darkline1 0 — 8y
Ad
Log in to vote
1
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
8 years ago

You can prevent resetting by changing the name of the "Humanoid" object in the character. However doing so may result in the breaking of multiple scripts that may rely on finding the object Humanoid.

0
I need instructions on how to change that. darkline1 0 — 8y
1
May I see attempt at a script? M39a9am3R 3210 — 8y
0
I need instructions on how to change that ^^ ;-; darkline1 0 — 8y
Log in to vote
0
Answered by 8 years ago

Change Humanoid to humanoid in character

Log in to vote
0
Answered by 8 years ago

Just quickly saying, there is a game that doesn't bug, which has resetting disabled.

Answer this question