#Animation wont play

31 messages · Page 1 of 1 (latest)

latent aurora
#

if script.Parent.Humanoid.Health < 15000 then
local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance:Play()
end

does not work for some reason

kindred sand
#

send screenshot of output

latent aurora
#

i dont think there is an error

#

no error

#

in the output

#

im confused

kindred sand
#

send screen shot on where you put the script

latent aurora
#

its in workspace in the npc

kindred sand
#

send a picture

latent aurora
#

of it?

#

or something

kindred sand
#

your whole screen

#

bruh

latent aurora
#

huh i dont understand u just want a pic of my whole screen

#

alright bro

kindred sand
#

bro you don't even have an animation in the script

latent aurora
#

yes i do

#

its not in the script

#

its under the script

#

the script fires the animation

kindred sand
#

watch a video because I don't understand the problem

#

sorry

primal blaze
#

What is with these unnecessary variables

fervent grotto
#

@latent aurora

if script.Parent.Humanoid.Health < 15000 then
    
    local animation = Instance.new("Animation")
    
    animation.AnimationId = "rbxassetid://11184792201"
    animation.Parent = script
    
    local humanoid = script.Parent:WaitForChild('Humanoid')
    local dance = humanoid:LoadAnimation(animation)
    
    dance.Looped = true
    
    dance:Play()
    
end

AnimationId = "rbxassetid://YOUR ANIMATION ID"

latent aurora
#

Alr ill test it ty

latent aurora
#

still dont work for some reason dik

fervent grotto
#

Most likely a problem with the animation

#

Try input id of my animation

#

and tell me if it works

latent aurora
#

Alrighty