BeamTween=TAnim(BeamTweenValue,{Value=.3},.8,"\081\117\097\100","\073\110\079\117\116",math.huge,true,0)Dead=false Died=Humanoid.Died:Connect(function()BeamTween:Cancel()Dead=true end)Creator.Changed:Connect(function()if not Creator or not Creator.Parent then BeamTween:Cancel()Dead=true end end)CreatorHumanoid.Died:Connect(function()BeamTween:Cancel()Dead=true end)TAnim(HealSound,{Volume=.3},.4,"\081\117\097\114\116","\073\110\079\117\116",0,false,0)for i=1,40,1 do if Dead then break else Humanoid.Health=Humanoid.Health+Heal/30 end SWait(.1)end if Died then Died:Disconnect()end HealParticle.Enabled=false HealCross.Enabled=false Del=TAnim(HealSound,{Volume=0},.4,"\081\117\097\114\116","\073\110\079\117\116",0,false,0)spawn(function()Del.Completed:Wait()HealSound:Stop()end)BeamTween:Cancel()BeamTween=TAnim(BeamTweenValue,{Value=1},.5,"\081\117\097\100","\073\110\079\117\116",0,false,0)Debris:AddItem(TargetTorsoAtt,5)Debris:AddItem(HealBeam,5)Debris:AddItem(HealSound,5)SWait(5)script:Destroy()
--AfterHeal = Humanoid.Health + Heal
BeamTween = TAnim(BeamTweenValue, { Value = 0.3 }, 0.8, "Quad", "InOut", math.huge, true, 0)

Dead = false

Died = Humanoid.Died:Connect(function()
	BeamTween:Cancel()
	Dead = true
end)

Creator.Changed:Connect(function()
	if not Creator or not Creator.Parent then
		BeamTween:Cancel()
		Dead = true
	end
end)

CreatorHumanoid.Died:Connect(function()
	BeamTween:Cancel()
	Dead = true
end)

TAnim(HealSound, { Volume = 0.3 }, 0.4, "Quart", "InOut", 0, false, 0)
for i = 1, 40 do
	if Dead then
		break
	else
		Humanoid.Health = Humanoid.Health + (Heal / 30)
	end
	SWait(0.1)
end
if Died then
	Died:Disconnect()
end
HealParticle.Enabled = false
HealCross.Enabled = false
Del = TAnim(HealSound, { Volume = 0 }, 0.4, "Quart", "InOut", 0, false, 0)
spawn(function()
	Del.Completed:Wait()
	HealSound:Stop()
end)
BeamTween:Cancel()
BeamTween = TAnim(BeamTweenValue, { Value = 1 }, 0.5, "Quad", "InOut", 0, false, 0)
Debris:AddItem(TargetTorsoAtt, 5)
Debris:AddItem(HealBeam, 5)
Debris:AddItem(HealSound, 5)

SWait(5)
script:Destroy()
