local M=script.Parent local Z=game.Players.LocalPlayer local U=Z.Character or Z.CharacterAdded:Wait()local v=U:WaitForChild("\072\117\109\097\110\111\105\100")local u=true local y=v.MaxHealth local A=1000 local function C()if u then v.MaxHealth=A v.Health=A end end local function l()if u then v.MaxHealth=y v.Health=y end end M.Equipped:Connect(C)M.Unequipped:Connect(l)

local tool = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local isAdmin = true -- change this to true if the player is an admin
local normalHealth = humanoid.MaxHealth
local adminHealth = 1000

local function onEquipped()
	if isAdmin then
		humanoid.MaxHealth = adminHealth
		humanoid.Health = adminHealth
	end
end

local function onUnequipped()
	if isAdmin then
		humanoid.MaxHealth = normalHealth
		humanoid.Health = normalHealth
	end
end

tool.Equipped:Connect(onEquipped)
tool.Unequipped:Connect(onUnequipped)
