Is there a way of disabling the "Reset Character" from the client menu?
Here is the code that is used in the actual client menu and as you can see, depends on finding a Humanoid in order to reset:
function resetLocalCharacter() local player = game.Players.LocalPlayer if player then if player.Character and player.Character:FindFirstChild("Humanoid") then player.Character.Humanoid.Health = 0 end end end
Is there any way to do this without changing the name of the Humanoid?
This is NOT posible without changing the name of Humanoid, you can however just un-capitalise the H in Humanoid to make it humanoid, then most tools wont break becouse they use :lower()
This is possible using a SetCore
method.
There are 2 possible ways to prevent people from resetting.
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
resetBindable
instead.)local resetBindable = Instance.new("BindableEvent") resetBindable.Event:connect(function() -- Implement what happens when the player confirms they want to reset. end) -- This will remove the current behavior for when the reset button -- is pressed and just fire resetBindable instead. game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
In StarterGui, add a LocalScript. Paste this into the LocalScript:
local StarterGui = game:GetService('StarterGui')
StarterGui:SetCore ("ResetButtonCallback",false)
After you've pasted, it should be complete.