Suttert animation bug

Please watch the attached video here.

As you can see in the video, when the walking animation is played in the animation editor it looks fine, but in game as shown later on midways through it becomes choppy, almost like its being played at a lower frame rate or something. This is strange as nothing similar has happened to me ever, help is appreciated.

Here is the code, its a segment of a much longer script which I excluded however the animation or the character that has the animation is not modified outside this function at any point so it should not matter

function setupRoom(Level)
	if LevelIsAnomoly == true then
		print("Random anomoly set (not really)")
	else
		--- NPC Reading Newspaper Load ----------
		
		local NPC = Level.Level.ReadingNewspaperNPC
		local animLoad = NPC.Humanoid.Animator:LoadAnimation(NPC.ReadingNormalAnim)
		
		animLoad:Play()
		
		------ Janitor Movement -------------
		
		local Janitor = Level.Level.Janitor
		
		Janitor.HumanoidRootPart:SetNetworkOwner(nil)
		
		local animLoad = Janitor.Humanoid.Animator:LoadAnimation(Janitor.Walk)
		
		
		animLoad:Play()	
		
		task.wait(10)
		
		animLoad:AdjustSpeed(0)
		
	end

end

if you’re confused why

print("Random anomoly set (not really)")

is there is because I started working on the game 2 days ago and I haven’t had the time to make anomalies take effect just yet

That’s because the server is playing the animation. When you click RUN, you start the game and you are the server so you see the change happening to server real time. The server replicates every change of the character to every client and that causes lag.
You can fix that issue by playing the animation from LocalScript (client side) instead of Script (server side). If the server must play the animation, you can create remote event and fire it to every client and from it every client will play the animation on its side and that won’t cause any lag.

I made the server tell all the clients which in turn play the animations on their side but the animation has the same issue

Weird. Did you stop server playing the animation? Also can you share server and client sided scripts

This might be caused by a property in workspace called ClientAnimationThrottling. Here’s the documentation about it:

Disabling that property fixed the issue, thanks. I didn’t know it existed prior to your post

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.