Hello everyone, I’m currently trying to get a custom rigged model to play an animation. I’ve went through Roblox’s resources and through the Devforum without finding anything that works.
The model is completely rigged and will slide if it’s running a MoveTo script. Everything seems to be working fine except the actual animation won’t play. Both the rig and the animation is from Mixamo. If I’m using the animation editor, the animation will play. When I try to call the animation with a script (I’ve tried multiple), it won’t work.
The model is a humanoid type model but is not R6 or R15
I’ve attached a picture of the NPC explorer as well as an example of some code I have tried
.
local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
local WalkAnim = humanoid.Walk
local walkAnimTrack = humanoid.Animator:LoadAnimation(WalkAnim)
humanoid.Running:Connect(function(speed)
if speed > 0 then
if not walkAnimTrack.IsPlaying then
walkAnimTrack:Play()
end
else
if walkAnimTrack.IsPlaying then
walkAnimTrack:Stop()
end
end
end)
Any help would be appreciated!