local I=1.5 local x=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local u=require((x:WaitForChild("\080\114\111\106\101\099\116")):WaitForChild("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101"))local U=u:GetResource("\069\120\116\101\114\110\097\108\085\116\105\108\046\078\101\120\117\115\073\110\115\116\097\110\099\101\046\078\101\120\117\115\079\098\106\101\099\116")local k=U:Extend()k:SetClassName("\072\101\097\108\069\102\102\101\099\116")function k.PerformServerAttack(I,x,u)local U=I.Character if U then local I=U:FindFirstChild("\072\117\109\097\110\111\105\100")local x=U:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")if I and(I.Health>0 and x)then local I=Instance.new("\065\116\116\097\099\104\109\101\110\116")I.Parent=x local u=Instance.new("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")u.Color=ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1.0,1.0,.58823529411765)),ColorSequenceKeypoint.new(.5,Color3.new(1.0,.90196078431373,.39607843137255)),ColorSequenceKeypoint.new(1,Color3.new(1.0,1.0,.58823529411765))})u.LightEmission=1 u.LightInfluence=0 u.Size=NumberSequence.new({NumberSequenceKeypoint.new(0,4.8,.4);NumberSequenceKeypoint.new(1,4.8,.4)})u.Texture="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\048\056\052\057\053\053\048\049\050"u.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,.883),NumberSequenceKeypoint.new(.0555,.983);NumberSequenceKeypoint.new(.111,.171);NumberSequenceKeypoint.new(.167,.393),NumberSequenceKeypoint.new(.222,.129),NumberSequenceKeypoint.new(.278,.921);NumberSequenceKeypoint.new(.333,.416);NumberSequenceKeypoint.new(.389,.215),NumberSequenceKeypoint.new(.444,.782),NumberSequenceKeypoint.new(.5,.232),NumberSequenceKeypoint.new(.555,.79);NumberSequenceKeypoint.new(.61,.811),NumberSequenceKeypoint.new(.666,.912),NumberSequenceKeypoint.new(.721,.875);NumberSequenceKeypoint.new(.777,.419),NumberSequenceKeypoint.new(.832,.3),NumberSequenceKeypoint.new(.888,.164),NumberSequenceKeypoint.new(.943,.396),NumberSequenceKeypoint.new(.999,.7);NumberSequenceKeypoint.new(1,1)})u.ZOffset=0 u.LockedToPart=true u.Lifetime=NumberRange.new(.333,.333)u.Rate=12 u.Rotation=NumberRange.new(-180,180)u.Speed=NumberRange.new(0,0)u.Parent=I local k=Instance.new("\080\097\114\116\105\099\108\101\069\109\105\116\116\101\114")k.Color=ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1.0,1.0,1.0));ColorSequenceKeypoint.new(.5,Color3.new(1.0,.8156862745098,.25490196078431));ColorSequenceKeypoint.new(1,Color3.new(1.0,1.0,1.0))})k.LightEmission=1 k.LightInfluence=0 k.Size=NumberSequence.new(4,4)k.Texture="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\048\056\052\057\053\053\052\056\056"k.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.5,.7);NumberSequenceKeypoint.new(1,1)})k.ZOffset=3 k.LockedToPart=true k.Lifetime=NumberRange.new(1,1)k.Rate=6 k.Rotation=NumberRange.new(-180,180)k.Speed=NumberRange.new(0,0)k.Parent=I local R=Instance.new("\066\111\111\108\086\097\108\117\101")R.Name="\066\111\111\115\116\069\102\102\101\099\116"R.Value=true R.Parent=U delay(5,function()I:Destroy()R:Destroy()end)end end end return k
--[[
TheNexusAvenger

"Boost" for a heal effect.
Particle effect by gkku (https://www.roblox.com/library/1086049283/Particle-a-Day-Effects).
Class is static (should not be created).
--]]

local PARTICLE_SCALE = 1.5



local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage"))

local NexusObject = ReplicatedStorageProject:GetResource("ExternalUtil.NexusInstance.NexusObject")

local HealEffect = NexusObject:Extend()
HealEffect:SetClassName("HealEffect")



--[[
Performs the attack on the server.
--]]
function HealEffect.PerformServerAttack(Player,DungeonModel,Target)
    local Character = Player.Character
    if Character then
        local Humanoid = Character:FindFirstChild("Humanoid")
        local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
        if Humanoid and Humanoid.Health > 0 and HumanoidRootPart then
            --Create the effect.
            local Attachment = Instance.new("Attachment")
            Attachment.Parent = HumanoidRootPart

            local BoltsEffect = Instance.new("ParticleEmitter")
            BoltsEffect.Color = ColorSequence.new({
                ColorSequenceKeypoint.new(0,Color3.new(255/255,255/255,150/255)),
                ColorSequenceKeypoint.new(0.5,Color3.new(255/255,230/255,101/255)),
                ColorSequenceKeypoint.new(1,Color3.new(255/255,255/255,150/255)),
            })
            BoltsEffect.LightEmission = 1
            BoltsEffect.LightInfluence = 0
            BoltsEffect.Size = NumberSequence.new({
                NumberSequenceKeypoint.new(0,4.8,0.4),
                NumberSequenceKeypoint.new(1,4.8,0.4),
            })
            BoltsEffect.Texture = "rbxassetid://1084955012"
            BoltsEffect.Transparency = NumberSequence.new({
                NumberSequenceKeypoint.new(0,0.883),
                NumberSequenceKeypoint.new(0.0555,0.983),
                NumberSequenceKeypoint.new(0.111,0.171),
                NumberSequenceKeypoint.new(0.167,0.393),
                NumberSequenceKeypoint.new(0.222,0.129),
                NumberSequenceKeypoint.new(0.278,0.921),
                NumberSequenceKeypoint.new(0.333,0.416),
                NumberSequenceKeypoint.new(0.389,0.215),
                NumberSequenceKeypoint.new(0.444,0.782),
                NumberSequenceKeypoint.new(0.5,0.232),
                NumberSequenceKeypoint.new(0.555,0.79),
                NumberSequenceKeypoint.new(0.61,0.811),
                NumberSequenceKeypoint.new(0.666,0.912),
                NumberSequenceKeypoint.new(0.721,0.875),
                NumberSequenceKeypoint.new(0.777,0.419),
                NumberSequenceKeypoint.new(0.832,0.3),
                NumberSequenceKeypoint.new(0.888,0.164),
                NumberSequenceKeypoint.new(0.943,0.396),
                NumberSequenceKeypoint.new(0.999,0.7),
                NumberSequenceKeypoint.new(1,1),
            })
            BoltsEffect.ZOffset = 0
            BoltsEffect.LockedToPart = true
            BoltsEffect.Lifetime = NumberRange.new(0.333,0.333)
            BoltsEffect.Rate = 12
            BoltsEffect.Rotation = NumberRange.new(-180,180)
            BoltsEffect.Speed = NumberRange.new(0,0)
            BoltsEffect.Parent = Attachment

            local BubbleEffect = Instance.new("ParticleEmitter")
            BubbleEffect.Color = ColorSequence.new({
                ColorSequenceKeypoint.new(0,Color3.new(255/255,255/255,255/255)),
                ColorSequenceKeypoint.new(0.5,Color3.new(255/255,208/255,65/255)),
                ColorSequenceKeypoint.new(1,Color3.new(255/255,255/255,255/255)),
            })
            BubbleEffect.LightEmission = 1
            BubbleEffect.LightInfluence = 0
            BubbleEffect.Size = NumberSequence.new(4,4)
            BubbleEffect.Texture = "rbxassetid://1084955488"
            BubbleEffect.Transparency = NumberSequence.new({
                NumberSequenceKeypoint.new(0,1),
                NumberSequenceKeypoint.new(0.5,0.7),
                NumberSequenceKeypoint.new(1,1),
            })
            BubbleEffect.ZOffset = 3
            BubbleEffect.LockedToPart = true
            BubbleEffect.Lifetime = NumberRange.new(1,1)
            BubbleEffect.Rate = 6
            BubbleEffect.Rotation = NumberRange.new(-180,180)
            BubbleEffect.Speed = NumberRange.new(0,0)
            BubbleEffect.Parent = Attachment

            --Start the boost.
            local BoostValue = Instance.new("BoolValue")
            BoostValue.Name = "BoostEffect"
            BoostValue.Value = true
            BoostValue.Parent = Character

            --Clear the effect.
            delay(5,function()
                Attachment:Destroy()
                BoostValue:Destroy()
            end)
        end
    end
end



return HealEffect