#Boss help

9 messages · Page 1 of 1 (latest)

upbeat walrus
#

im also facing another problem

lethal radish
#

i have this problem too

inland lark
#

no errors?

zenith osprey
#

I think that this runs lot of times as soon the boss life is under 15000

#

So the animations glitches ig

#

local playing = false

while true do
local animation = script:WaitForChild('Charge')
local humanoid = script.Parent:WaitForChild('Humanoid')
local Charge = humanoid:LoadAnimation(animation)
wait(0.1)

if script.Parent.Humanoid ~= nil then
    if script.Parent.Humanoid.Health < 15000 and not playing then
        Charge:play()
        playing = true
    end
end

end

#

Now like that as soon the boss life goes under 15000 as playing is initially equals false it's plays the animation

#

Same time it plays the animation, playing becomes true so the next moment it doesn't play the anim again

#

Bc its already playing or alr played