#I need help, I’ve been working on this animation script but it’s not working
33 messages · Page 1 of 1 (latest)
Not sure if I maybe put something in the wrong place? The animation im trying to make work is the spawnAnimation
well looks pretty obvious
you see nothing wrong for the id
there is two ids concatenating
you can remove the ..tostring(animationId)
I’m new to scripting so I didn’t see anything wrong with it. I also tried like 10 other scripts but none of them worked
The entire line? Or just that part
Oh okay!
I just removed and ran it, it’s still not working
Have I maybe put something in the wrong place?
** You are now Level 1! **
can you copy paste the script so i can write it and then explaining
Alright
local animationId = "rbxassetid://15960873921"
local char = script.Parent
local animController = char:FindFirstChildOfClass("Humanoid") or char:FindFirstChildOfClass("AnimationController")
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://15960873921")
local animTrack = animController:LoadAnimation(animation)
animTrack:Play(0, 1, 1)
local char = script.Parent
local animator = char:FindFirstChild("Humanoid").Animator
local animation = Instance.new("Animation")
animation.Parent = char
animation.AnimationId = "rbxassetid://15960873921"
local animTrack = animator:LoadAnimation(animation)
animTrack:Play()
when you are creating an instance it should always have a parent and instead of using the animation controller use the animator inside the humanoid
make sure there is an animator in your humanoid*
there is, and alright thank you, ill note that down and move the animation into the humanoid
do i delete the animation controller then?
yes you can
and you do not need the animation anymore too since in this script, you are creating a new one witht he same id
you are the best person ive ever met

can i hire you 😭
no sorry im not for hire
aw alright but thanks anyway! youve helped me a ton!