How to completely restart the game for a player when he resets its character?

I got the solution:

This will intercept the Reset Character button:

local resetBindable = Instance.new("BindableEvent")
resetBindable.Event:connect(function()
	print('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)

… and also, if I want to disable the Reset Character button:

-- Setting ResetButtonCallback to false will grey out the reset button
-- in the menu and players won't be able to reset in your game.
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
3 Likes