Animation doesn't play to the one I created

Here is the one I created in animation editor

And this is how it plays when you play game

The problem is that the head doesn’t move

1 Like

Is its head anchored? It might be moving from a different joint than you want it to.

It looks like the head is moving, just that it’s continously pointing in the direction to face 90 degrees instead of free angle movement.

The head isn’t anchored and also, I don’t understand

Script:

local DragonAnim = game.ReplicatedStorage.RemoteEvents.Server.Dragon.DragonAnim

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local Humanoid = character:WaitForChild("Humanoid")

DragonAnim.OnClientEvent:Connect(function(Dragon,HumanoidRootPart,Pos)
	local run = Dragon.BabyDragon.Humanoid:LoadAnimation(Dragon.BabyDragon.MovingAnim)
	run.Looped = true
		
	local cFrame = CFrame.new(Pos) * CFrame.Angles(0,math.rad(-180),0)
	
	Humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
		if Humanoid.MoveDirection.Magnitude > 0 then
			run:Play()
		else
			run:Stop()
		end
	end)
	
	game:GetService("RunService").RenderStepped:Connect(function()
		for _, v in pairs(Dragon.BabyDragon:GetChildren()) do
			if v:IsA("BasePart") then
				v.CFrame = HumanoidRootPart.CFrame * cFrame
			end
		end
	end)
end)

Does anyone on devfurom have an answer about this???

Since the cframe is happening to all the parts in the dragon why is it only happening to the head?

Instead of cframe what other method I should use. AlignPosition and AlignOrientation doesn’t work because I tried that before it wouldn’t play the animation but would make it follow the player.

I think this is a illusion caused by your eyes, try removing the camera bob and see if it fixes.

You could try to highering the animion priority but i doubt it will work