Viewmodel Animation not playing!

Howdy! I was working on making a ViewModel for some experiments and when I go to play/load animations it doesn’t play said animation.

Script used LocalScript inside StarterCharacterScripts
wait(1)

local player = game.Players.LocalPlayer

local char = script.Parent

local cam = workspace.Camera

local run = game:GetService("RunService")

local gun = game.ReplicatedStorage.FirstPerson:Clone()

run.RenderStepped:Connect(function()

gun:SetPrimaryPartCFrame(cam.CFrame * CFrame.new(0,-.5,0))

end)

gun.Parent = cam

wait()

gun.Humanoid.Animator:LoadAnimation(gun.Hold):Play()

warn("BABABOOEY")

The warn is there just to see if the script is working or not.

Video of this issue
https://gyazo.com/ab2cc20e22be9bb5837d0e29f453116c

Just wanting to know how to fix this, I’ve had this issue for months now.

1 Like