Animations for FPS arms not working

I’m currently making an FPS game where the player has FPS arms, but the animations won’t play.

--Services
local UIS = game:GetService("UserInputService")
local Players = game:GetService("Players")

--Variables
local Player = Players.LocalPlayer
local Character = script.Parent
local Humanoid = Character.Humanoid or Character:WaitForChild("Humanoid")

local Animator = Instance.new("Animator")
Animator.Parent = Humanoid

local AnimationsFolder = Character.AnimationsFolder or Character:WaitForChild("AnimationsFolder")

local FistIdle = Animator:LoadAnimation(AnimationsFolder.Viewmodel.Fist.FistIdle)
local FistEquip = Animator:LoadAnimation(AnimationsFolder.Viewmodel.Fist.FistEquip)

UIS.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.One then
		print("playing")
		FistEquip:Play()
		task.delay(FistEquip.Length, function()
			FistIdle:Play()
		end)
	end
end)

I know how to make animations and how to play them since I used and made many in the past but whenever I tried making ones not including the player’s body parts it never worked, aswell as now. Any help on how to fix this or make them work? Since I’m pretty sure I’m doing it wrong somehow.

I don’t think you need to do this.

If you’re using a custom viewmodel, try using a viewmodel from toolbox and see if that works

I know but it didn’t work so I tried other ways hoping maybe they helped somehow. (it didn’t obviously)

Are you playing the animations onto the player or the viewmodel, cause it seems to me that you’re playing them onto the players character directly

1 Like

OH thanks! I don’t know why I never thought about this lol

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.