I’ve been trying to figure this out since 2 days. In this sync system, I don’t understand why animations wont sync. The player that syncs to the target, is always around 2 seconds delayed.
Anyone have any clue?
local function sync(player, target)
local animator1 = player.Character:WaitForChild("Humanoid"):WaitForChild("Animator")
local animator2 = target.Character:WaitForChild("Humanoid"):WaitForChild("Animator")
local anims = getAllAnimId()
for i,v in pairs(animator2:GetPlayingAnimationTracks()) do
local trackId = getNumber(v.Animation.AnimationId)
local index = table.find(anims,trackId)
if(index)then
-- here is the problem: Its delayed ??
local anim = animator1:LoadAnimation(v.Animation)
local temp_timeStamp =
anim:AdjustSpeed(v.Speed)
anim.TimePosition = v.TimePosition
anim:Play()
break;
end
end
end
All help is appreciated!