When my NPC has an animation played on it while it moves, the animation stutters and it looks really bad. How should I go about fixing this?
Here is the animation script:
local Hum = script.Parent.Humanoid
local Swim = script.Swim
local SwimPlay = Hum:LoadAnimation(Swim)
Hum.Running:Connect(function()
if script.Parent.HumanoidRootPart.AssemblyLinearVelocity.Magnitude > 0 then
SwimPlay:Play()
else
SwimPlay:Stop()
end
end)
No, it’s not just for you it also happens for me, I solve this in a bad way where I do it as a local animation and when I want it to play I use a remote event and fire it to all clients, this way the server doesn’t try and replicate any animation there for little lag/stuttering.