Reset Command
Key RequiredUniversal

Reset Command

Universal Scriptlarkyqkwqlarkyqkwq 559 views 72 executesUpdated Dec 31, 2025
Unrated
00
Lua Script•51 lines (1102 chars)
--// Services
local Players = game:GetService("Players")
local Player = Players.LocalPlayer

--// Normalize text
local function clean(text)
	return string.lower(string.gsub(text, "%s+", ""))
end

--// Reset function
local function resetCharacter(keepPosition)
	local Character = Player.Character
	if not Character then return end

	local Humanoid = Character:FindFirstChildOfClass("Humanoid")
	local Root = Character:FindFirstChild("HumanoidRootPart")
	if not Humanoid or not Root then return end

	local savedCFrame
	if keepPosition then
		savedCFrame = Root.CFrame
	end

	Humanoid.Health = 0

	if keepPosition and savedCFrame then
		Player.CharacterAdded:Once(function(newChar)
			local newRoot = newChar:WaitForChild("HumanoidRootPart")
			newRoot.CFrame = savedCFrame
		end)
	end
end

--// Chat listener
Player.Chatted:Connect(function(msg)
	local text = clean(msg)

	-- SAME POSITION RESPAWN
	if text == "-re" then
		resetCharacter(true)
		return
	end

	-- NORMAL RESET
	if text == "re"
		or text == "/re"
		or text == "reset"
		or string.find(text, "reset") then
		resetCharacter(false)
	end
end)

Features & Information

Brivwksc2

Community Comments (1)

crystalscrystalsDec 31, 2025

replicatesignal(Player.ConnectDiedSignalBackend) task.wait(0.1) replicatesignal(Player.Kill)

More Scripts for Universal Scripts