local Players = game:GetService("Players") local StarterGui = game:GetService("StarterGui") local RunService = game:GetService("RunService") -- Clean up any previously running instance of this script local env = getgenv and getgenv() or _G if env.ForceResetCleanup then pcall(env.ForceResetCleanup) env.ForceResetCleanup = nil end local LocalPlayer = Players.LocalPlayer local Active = true -- Create a custom BindableEvent to handle the Reset button click local ResetBindable = Instance.new("BindableEvent") local function doRespawn() local char = LocalPlayer.Character if not char then return end -- Method 1: Break joints / set health to 0 (works in 95% of games) local hum = char:FindFirstChildOfClass("Humanoid") if hum then hum.Health = 0 end char:BreakJoints() -- Method 2: Fallback if the game blocks Humanoid death on the client task.delay(0.4, function() if LocalPlayer.Character == char and hum and hum.Health > 0 then local root = char:FindFirstChild("HumanoidRootPart") if root then -- Drop below the workspace FallenPartsDestroyHeight to force server deletion root.CFrame = CFrame.new(0, workspace.FallenPartsDestroyHeight - 50, 0) end end end) end ResetBindable.Event:Connect(doRespawn) -- Function to force-enable the button in the Esc menu local function applyResetCallback() pcall(function() StarterGui:SetCore("ResetButtonCallback", ResetBindable) end) end -- Apply immediately applyResetCallback() -- Keep enforcing it in case the game tries to disable it again on spawn or loop local loopConn = RunService.Stepped:Connect(function() if not Active then return end applyResetCallback() end) -- Register cleanup so re-running overwrites cleanly env.ForceResetCleanup = function() Active = false if loopConn and loopConn.Connected then loopConn:Disconnect() end if ResetBindable then ResetBindable:Destroy() end pcall(function() StarterGui:SetCore("ResetButtonCallback", true) end) end pcall(function() StarterGui:SetCore("SendNotification", { Title = "Respawn Enabled"; Text = "Esc menu Reset Character button is now active."; Duration = 3; }) end)