Viewmodel Animation Error

  1. What do you want to achieve? Keep it simple and clear!

i want my viewmodel animation will play

  1. What is the issue? Include screenshots / videos if possible!

the issue is the animation block works well its prints says animation works but in game the vm animation doesnt play

local function Equip()
	equipped = true
	player.CameraMaxZoomDistance = 0

	HoldTrack:Play() --Anim for PlayerModel

	Viewmodel = arms:Clone()
	Viewmodel.Parent = cam
	Viewmodel:SetPrimaryPartCFrame(cam.CFrame)


	local vmHumanoid = Viewmodel:FindFirstChildOfClass("Humanoid")
	if vmHumanoid then
		VMHoldTrack = vmHumanoid:LoadAnimation(VMHoldAnim)-- ViewmodelHold Anim
		VMHoldTrack.Priority = Enum.AnimationPriority.Action
		VMHoldTrack:Play()
		print("Aniamsyon oynadi")
	else
		warn("Viewmodel içinde Humanoid bulunamadı!")
	end
end

and here are the viewmodel in right arm there is a weld that holds handle the entire weapon on humrootpart theres m6 left and right arm

and i cant think how i can solve this problem

Put the character Into a WorldModel.

like how‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

Is this meant for like an FPS?

yep‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

You should use an animation controller.

with animatorController should i use worldmodel or just copy to the players camera

You still need to handle the logic of displaying the ViewModel but, models that aren’t generic humanoids should use AnimationControllers for animations.

Here is a good start to finish tutorial: