Need help with a major animation bug

Hello! Having a major bug happening with animations. No idea what the root cause is, there’s no errors. Let demonstrate here and show you a video. There’s two players, player on and player two. Player one is holding an item with a custom animation, player two sees this animation perfectly fine. If Player one decides to walk and then stop, Player two doesn’t see any animations, but Player one still sees it.

Here is the video

How I think this could be fixed. This potentially could be caused by a script, I can show script later for the item, I use this script for all of the items in the game currently.

local tool = script.Parent

local didOpen = false
local interval = 2

local RemoteEvent = game.ReplicatedStorage.RemoteEvents:WaitForChild("DeathNoteOpen")

local Player = game.Players.LocalPlayer
repeat task.wait() until Player.Character
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")

local Animation = Humanoid.Animator:LoadAnimation(script.Animation)
	
tool.Activated:Connect(function()
	if not didOpen then
		didOpen = true

		Animation:Play()

		RemoteEvent:FireServer(script.Parent)

		Player.PlayerGui.DeathNoteGui.Enabled = true

		if tool.Opened.Value == true then
			Animation:Stop()
			Player.PlayerGui.DeathNoteGui.Enabled = false
end
		task.wait(interval)
		didOpen = false
		
	end
end)
```![2021-11-24 13-40-38|video](upload://fRfzaGf4xk34LxGvc8xAonC7Dqm.mp4)

Is the animation priority set right?
I doubt that’s the issue but It’s the only thing I can think of

What should it be set to if its a tool holding animation?

1 Like

Here is video, sorry I forgot to add it to post

1 Like

Action I think. It would then override the walking animation

1 Like

Yeah it looks like its not replicating to the other client for some reason.
Are you adding the animator object yourself? If so make sure it is created on the server and that the animation script is local

1 Like

I think my idle is set on this, let me check

2 Likes

Thank you so much, this was a bug I’ve known for around 2 months but decided to never fix, I set my walking animation to movement, and my idle to idle.

2 Likes

Glad I could help. I know what it’s like to have a bug and decide never to fix it lol

1 Like

Facts, I can show you in DM’s my game if you’d like, every person I’ve shown had major nostalgia with the intro music. I believe you will to :slight_smile:

2 Likes