Head Rotation replicating problem

Basically, my head rotation works perfectly for client and first time when player joins aswell. But when the server uses :LoadCharacter() for everyone, it suddenly starts to jiggle.


Alternative link: https://cdn.discordapp.com/attachments/860211955063455784/926311815422554152/Desktop_2021.12.30_-_21.11.10.28_Trim.mp4

But, it’s perfect in studio 2 player playtest. I even tried to reload all characters on server manually a lot of times, still everything is smooth.
image

Here’s the code:
CLIENT:
On death:
image

Render:

Receiver:

Sender:
image

SERVER:

I also tried using Humanoid:GetState() == Enum.HumanoidStateType.Dead instead of checking health, but it doesn’t seem to work on server with BreakJointsOnDeath enabled, but I don’t know if it’s the problem.

Rather than death try checking for Ancestry Changed?

object.AncestryChanged:Connect(function(_, parent)
	if not parent then
		print("object destroyed!")
	end
end)

Also this seems like a CFrame conflict, not sure why. Mine was caused between server C0 replication and client C0.

Maybe make sure your things are being cleaned up properly via a lot of prints?

1 Like

Thank you for answering. I’ll try this out.