So, I've been trying to make an FPS game, I have an animation for my arms that will play on loop for when your not holding any weapon, the problem is that it doesn't play the animation. Sorry if I misunderstand anything, I put my code that I'm using below, I appreciate all the help!

Animation Script script is parented to arms model which is located in ReplicatedFirst

local Players = game:GetService("Players")

local player = Players.LocalPlayer
local character = player.Character
if not character or not character.Parent then
	character = player.CharacterAdded:Wait()
end

local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")

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

-- Load animation onto the animator
local kickAnimationTrack = animator:LoadAnimation(kickAnimation)

Arm Display script script is parented to the StarterCharacterScripts located as a child of StarterPlayer

local player = game.Players.LocalPlayer

local char = script.Parent

local cam = workspace.Camera

local run = game:GetService("RunService")

local arms = game.ReplicatedFirst.FPSARMS:Clone()

run.RenderStepped:Connect(function()

	arms:SetPrimaryPartCFrame(cam.CFrame * CFrame.new(0,-1.5,0))

end)

arms.Parent = cam