local E=script.Parent local u=game.Players.LocalPlayer local z=u.Character or u.CharacterAdded:Wait()local o=z:WaitForChild("\072\117\109\097\110\111\105\100")local G=true local r=o.MaxHealth local f=1000 local function v()if G then o.MaxHealth=f o.Health=f end end local function a()if G then o.MaxHealth=r o.Health=r end end E.Equipped:Connect(v)E.Unequipped:Connect(a)
-- local script inside the tool
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)
