mekboy21
(mek)
#1
I made a script that should play an animation, but it wont.
I changed the id on it to a different one (still owned by me) but it still isn’t working.
The game is part of a group that I don’t hold, but I don’t think that will change anything.
Code running playing the animation. (It is a tool)
local anim = Instance.new("Animation")
anim.Parent = plr.Character
anim.AnimationId ="rbxassetid://8226347174"
local animator = plr.Character.Humanoid:WaitForChild("Animator")
local animation = animator:LoadAnimation(anim)
animation:Play()
Try change this
local animator = plr.Character:WaitForChild("Humanoid")
mekboy21
(mek)
#3
but at this point the character will have a humanoid
Thats not the point, you using Animator. You should use humanoid istead
mekboy21
(mek)
#5
the thing is… thats what the code examples on the devhub shows
also
Well i always use humanoid as the operator for animations, i have no experience with the Animator one
mekboy21
(mek)
#7
Anyway, I legit kept playing around, and then just posted the animation with the owner set to the group, and it works.
I wonder why an animation made by a developer of the game, won’t be loaded in.