Animation Not Showing Correct To Other Player

my game animation not showing correct on server side when animation look normal on client

and problem is other player see what server see

i edited roblox animate script to make it can play run animation and walk animation

it also happened on my wing animation

local PLAYER = game.Players.LocalPlayer
local CHARACTER = PLAYER.Character
local HUMAN = CHARACTER:WaitForChild("Humanoid")
local ANIMATOR = HUMAN:WaitForChild("Animator")
local WING_ANIMATION = script:WaitForChild("Animation")
local CURRENT_ANIMATION

local CURRENT_ANIMATION = ANIMATOR:LoadAnimation(WING_ANIMATION)
CURRENT_ANIMATION:Play()

WING_ANIMATION:GetPropertyChangedSignal("AnimationId"):Connect(function()
	CURRENT_ANIMATION:Stop(0.2)
	--CURRENT_ANIMATION = ANIMATOR:LoadAnimation(WING_ANIMATION)
	--CURRENT_ANIMATION:Play()
end)
WING_ANIMATION:GetPropertyChangedSignal("AnimationId")

Is this ever firing?

1 Like

Yeah, when animationid getting changed script will load the new animationid and stop old animationid, im removing load new animationid part for example

i found the way to fix it now

you just need to create new animation object and copy the animationid from animation you want to play it, destroy the new animation object when you stop the animation

    CURRENT_ANIMATION:Stop(0.2)
	ANIMATION_OBJECT:Destroy()
	
	ANIMATION_OBJECT = Instance.new("Animation")
	ANIMATION_OBJECT.AnimationId = WING_ANIMATION.AnimationId
	CURRENT_ANIMATION = ANIMATOR:LoadAnimation(ANIMATION_OBJECT)
	CURRENT_ANIMATION:Play()