Tool Animation Not Replicating

Hello, currently having trouble running animations with R15 since I’m kinda new to scripting with animations. My animation is working on the client but not replicating to the server, there’s no other scripts enabled which could be overlapping the animation that I can think of besides the default Roblox animations.

My local script running the code inside of a tool on equip:

local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://5017197786"
local AnimationTrack = Player.Character.Humanoid:LoadAnimation(Animation)
AnimationTrack.Priority = Enum.AnimationPriority.Action
Player.Character.Humanoid:WaitForChild("Animator")
AnimationTrack:Play()
CurrentAnimation = AnimationTrack

I normally use a script when making a tool animation, so what I would do in the script is:


Local Players = game:GetService("Players")

Player.PlayerAdded:Connect(function(plr)
           local character = plr.Character or plr.CharacterAdded
           Humanoid = character:FindFirstChild("Humanoid:)
           

end)

local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://5017197786"

local AnimationTrack = Humanoid:LoadAnimation(Animation)

AnimationTrack.Priority = Enum.AnimationPriority.Action

AnimationTrack:Play()

Tried running it on a server script and it still only replicated to the client.