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.