I created a grid with bones in a blender for the monster. Everything works fine until the moment I add Humanoid to the model. Without the humanoid, I upload it to the Animation Controller and it works fine.
I need a humanoid to move the NPC ((
I created a grid with bones in a blender for the monster. Everything works fine until the moment I add Humanoid to the model. Without the humanoid, I upload it to the Animation Controller and it works fine.
I need a humanoid to move the NPC ((
First of all, do you have any animations for the NPC ?
If you have so then export the animation and copy the id of the animation
Then add a script to the group model and paste the following below code
local animationId = "YOUR_ANIMATION_ID"
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(0, 1, 1)
Try this and check whether it works
Adjust your animations or script based on how your model behaves during playtesting.
The problem was that I had two controllers at the same time. And the humanoid automatically disables the usual animation controller. The solution was to remove the animation controller, and add an animator to the humanoid.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.