Hello! I will try to explain as clearly as possible.

I have an NPC blacksmith who plays a sword forging animation. And at the moment when the hammer touches the sword, I put the event in the animation menu. And through the script I look when this event is triggered and turn on the particle element and sound.

animationTrack:GetMarkerReachedSignal("Particles"):Connect(function(event)
    if tonumber(event) == 1 then
		particles.Enabled = true
		sound:Play()
	else
		particles.Enabled = false
	end
end)

On the server side, everything is fine. But on the client side, the animation does not match the script. Sound and particles play in the wrong place.

Is it possible to synchronize?

2 comments

0

Try moving the event father back, to compensate for the lag

0

I tried. But with each visit to the server, the delay time changes.