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

Is There A Way To Stop People Resetting Like In Super Bomb Survival?

Asked by 8 years ago

I Want To Make The Menu Not Show And Also Let People Not Reset.

0
I don't think this is possible... Reset was meant for players not to have to rejoin the game if they somehow got stuck. Before they introduced this feature it was a complete mess... Link150 1355 — 8y
0
You can't make the menu not show, but if you change the name of the humanoid it stops the functionality of the button. EgoMoose 802 — 8y
0

3 answers

Log in to vote
5
Answered by
StoIid 364 Moderation Voter
8 years ago
Edited 8 years ago

There is.

People say that the ROBLOX reset button is Lua coded and it looks for through your character until it finds your Humanoid and then basically sets your Health to 0, essentially killing you!

To remove resetting, change the name of the humanoid to something else and you shouldn't be able to reset!

Example Code That You Can Use

game.Players.PlayerAdded:connect(function(p)
    p.CharacterAdded:connect(function(c)
        c:WaitForChild("Humanoid").Name = "BlahBlah"
    end)
end)

WARNING: doing this breaks tools and scripts that are not properly coded to handle this.

Ex. Sword scripts, scripts that deal damage to humanoid, most / any tool or script that are not scripted according to this change.

To fix this is really simple. Just have your scripts look for whatever you changed your Humanoid's name to. In this case, "FalseHumanoid"

Put this in a regular script and put it in wherever you put you scripts. (ServerScriptService or Workspace).

Hope this helped! If so, please accept?

Ad
Log in to vote
0
Answered by
Link150 1355 Badge of Merit Moderation Voter
8 years ago

As of November 7, there is now a proper way to disable or customize the behavior of the main menu's reset button.

Setting "ResetButtonCallback" to false will disable the reset button, which will then appear grayed out.

game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)

While unrelated to the question, I'd like to point out that it is also possible to set "ResetButtonCallback" to a BindableEvent object to disable the default reset button behavior and instead implement your own.

local resetEvent = Instance.new("BindableEvent")

-- Once the reset button is clicked, our 'resetEvent' BindableEvent will fire,
-- and all the functions 'connect()'ed to it will be called.
resetEvent:Connect(function()
    print("Someone tried to reset!")
end)

game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetEvent)
Log in to vote
-3
Answered by 8 years ago

You can't make the menu not show, but you can change the name of the humanoid OR counter the health changing to 0. As a localscript in StarterGui this has always worked for me:

local Humanoid = workspace:FindFirstChild(game.Players.LocalPlayer.Name).Humanoid

Humanoid.HealthChanged:connect(function(health)
    Humanoid.Health = 100
end)
0
That would prevent the player from being able to die in general :/ StoIid 364 — 8y

Answer this question