local rp = game:GetService("ReplicatedStorage")
local Barrage = rp:WaitForChild("Stand8Remotes"):WaitForChild("BarrageHealHold")
local TweenService = game:GetService("TweenService")
local Debris = game:GetService("Debris")
local Health = 3 -- what i tried
local debounce = false
function leftSide(Character,Stand,Folder,armPart)
local posY = math.random(1.25,1.75)
local rotX = math.random(-5,1)
local Arm = script:WaitForChild("Arm"):Clone()
Arm.CFrame = Stand:WaitForChild("UpperTorso").CFrame * CFrame.new((math.random(-170,-150)/100),(math.random(50,150)/100),-.2)
Arm.Orientation = Arm.Orientation + Vector3.new(rotX,-math.random(7,15),0)
Arm.Color = armPart.Color
Arm.Size = Vector3.new(1,1,1)
Arm.Parent = Folder
Debris:AddItem(Arm,.4)
Arm.Touched:Connect(function(Hit)
if Hit:IsA("Part") or Hit:IsA("MeshPart") then
if Hit.Parent ~= Character and Hit.Parent ~= Stand then
print(Hit)
local EHumanoid = Hit.Parent:FindFirstChild("Humanoid")
if EHumanoid and not EHumanoid:FindFirstChild("ArmPunch") then
print("attacking")
local ArmPunch = Instance.new("BoolValue",EHumanoid)
ArmPunch.Name = "ArmPunch"
Debris:AddItem(ArmPunch,.1)
local sound = Instance.new("Sound",Folder)
sound.SoundId = "rbxassetid://2174934844"
sound.Volume = 1
sound:Play()
Debris:AddItem(sound,.5)
local wave = script:WaitForChild("Wave"):Clone()
wave.Parent = Folder
wave.CFrame = Arm.CFrame * CFrame.new(0,0,-1)
wave.Orientation = wave.Orientation + Vector3.new(90,0,0)
Debris:AddItem(wave,.25)
local goal = {}
goal.Size = wave.Size + Vector3.new(5,0,5)
goal.Transparency = wave.Transparency + (1 - wave.Transparency)
local info = TweenInfo.new(.25)
local tween = TweenService:Create(wave,info,goal)
tween:Play()
EHumanoid:GetDamage(Health) -- also what i tried
end
end
end
end)
so you see i want this script to heal whoever who it hits but what ever i do nothing happens i would appreciate some help

1 comment
First off, if you want it to heal, you'd make it Humanoid:TakeDamage(-health) because taking negative damage is healing, although it might still have that bug where HP increased by a negative takedamage can exceed max hp. I'd recommend Humanoid.Health=Humanoid.Health+damage personally.