I am having a issue where the animation runs fine in the animation editor but if i run the animation in game via a script it just isnt working. As mentioned in the titel this is a custom rig that i rigged in blender and imported via the import character plugin. Below you can find media about the problem.
Thx if you can help me.
This is a video showing my problem in more detail:
This is the model hirarchy:
Here is the code i use in the video:
local model = script.Parent
local animation = Instance.new("Animation")
animation.AnimationId = model.AnimationPack.Walk.AnimationId
local animationtrack = model.AnimationController:LoadAnimation(model.AnimationPack.Walk)
animationtrack.Looped = true
animationtrack:Play()
while true do
print(animationtrack.TimePosition)
wait(.5)
end