dryhour
(MrBowW)
October 19, 2022, 1:44am
#1
animation wont play for some reason: It is also in the local script animate, so when i walk it should play…
local animationId = “11316377887”
local char = script.Parent
local animController = char:FindFirstChildOfClass(“Humanoid”) or char:FindFirstChildOfClass(“AnimationController”)
local animation = Instance.new(“Animation”)
animation.AnimationId = “rbxassetid://” … tostring(animationId)
local animTrack = animController:LoadAnimation(animation)
animTrack:Play()
1 Like
paetemc2
(Dragon_bloxy)
October 19, 2022, 4:24am
#2
You need to do
local animController = char:FindFirstChild("Humanoid").Animator
dryhour
(MrBowW)
October 19, 2022, 10:31pm
#3
still doesnt play animation, also this wont fix my problem with the animation during the animate script
paetemc2
(Dragon_bloxy)
October 19, 2022, 10:40pm
#4
This is what i have used in the past, and it seems to have worked pretty reliably:
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
local walkAnim = script:WaitForChild("Walk")
local walkAnimTrack = humanoid.Animator:LoadAnimation(walkAnim)
humanoid.Running:Connect(function(speed)
walkAnimTrack:AdjustSpeed(4)
if speed > .01 then
if not walkAnimTrack.IsPlaying then
walkAnimTrack:Play()
end
else
if walkAnimTrack.IsPlaying then
walkAnimTrack:Stop()
end
end
end)
dryhour
(MrBowW)
October 19, 2022, 10:47pm
#5
It still doesnt play… i think its something wrong with the rig, or animation but idk what
try check if it a group animation if it is your own animation then try to make a group animation.
dryhour
(MrBowW)
October 19, 2022, 10:53pm
#7
It is an animation uploaded from a file so its not a group animation
where you publish the game? on group?
dryhour
(MrBowW)
October 19, 2022, 10:56pm
#9
no on my profile… its a own project
so the animation need in your profile
you can publish the animation again but switch it to your profile
dryhour
(MrBowW)
October 19, 2022, 11:00pm
#11
i am, i set the creator to “Me”
but the id? you get from your profile?
dryhour
(MrBowW)
October 19, 2022, 11:11pm
#13
wym, im confused and dont understand
paetemc2
(Dragon_bloxy)
October 19, 2022, 11:20pm
#14
what is the animation priority set to? I think it needs to be set to movement
dryhour
(MrBowW)
October 19, 2022, 11:47pm
#15
still dont play, i think its the rig
i mean when you publish the animation to your profile did you copy the new id and put it in animation?
dryhour
(MrBowW)
October 21, 2022, 12:08am
#17
ya i did but it still dont work do u know if anything wrong with rig
well i cant help u rn, the thing i can tell you now is check your animation id and place you publish it
Well i am currently facing the same problem, did anyone find a solution about it?