Animations not working properly

I have an issue where animations don’t work properly on the client side (player view) but whenever I use server view it looks fine and perfect.

What happens:
Idle animation will play forever in Init because it’s looped, I tested when I play another animation will it break it or not but that animation ends up bugg, not actually animating properly and then stopping both idle and the animation. However if I change ot server view it will not display this behaviour and will play idle, then play the other animation, stop the other animation and continue idle.

function Core:LoadAnimations()
	local Animation = Instance.new('Animation')
	local Animator = self.Animator
	local Anims = {}
	
	for index, animationId in self.AnimationIDs do
		Animation.AnimationId = 'rbxassetid://' .. animationId
		local Track: AnimationTrack = Animator:LoadAnimation(Animation)
		Track.Priority = Enum.AnimationPriority.Action
		Track.Looped = true
		Anims[index] = Track
	end
	Animation:Destroy()
	warn(Anims)
	self.Anims = Anims
end

function Core:Init()
	local Tracks = self.Anims
	local idleTrack = Tracks[0]

	idleTrack:Play()
	
	task.wait(5)
	Tracks[6]:Play()
	wait(5)
	Tracks[6]:Stop()
end
1 Like