Animation not playing fully on server, but does on client [VIDEO]

Please see video.

I run the animation in a local script, which also runs on the server but does not look the same.
I tried using remote events, but same issue persists
Please help

Script:

local function animate(player)
	local character = player.Character or player.CharacterAdded:Wait()
	local humanoid = character:WaitForChild("Humanoid")
	local Animator = humanoid:WaitForChild("Animator")
	local shockAnimation = Instance.new("Animation")
	shockAnimation.AnimationId = "rbxassetid://9243202458"
	local shockAnimationTrack = Animator:LoadAnimation(shockAnimation)
	shockAnimationTrack.Priority = Enum.AnimationPriority.Action
	shockAnimationTrack.Looped = false
	shockAnimationTrack:Play()
end

--call animate(player) later in same local script

Your script appears to be written correctly, this could just be a Roblox engine issue. Might want to report this in #bug-reports

1 Like

Character animations replicate to the server anyway, so they’re better to handle on the client.

Please read my post. I am doing this in a localscript

Yeah, animations replicate to the server provided that the animation object is instanced by the server.

Create the animation object on the server & then load/play it on the client.

I always load animations on the client, and they automatically replicate to the server properly.