What do you want to achieve? Keep it simple and clear!
i want my viewmodel animation will play
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
You still need to handle the logic of displaying the ViewModel but, models that aren’t generic humanoids should use AnimationControllers for animations.