I have a problem with my Viewmodel animations not playing while ADS I tried a few things I don’t know how to make animations override CFrame
Problem:
https://gyazo.com/bdea51b043a31a68780a9b296c9bf68e
Full View model code:
self.Instance:SetPrimaryPartCFrame(Camera.CFrame)
local MouseDelta = game:GetService("UserInputService"):GetMouseDelta()
local Bobble = Vector3.new(self:GetBobbing(20) , self:GetBobbing(10) , self:GetBobbing(10));
BobbleSpring:shove(Bobble / 10 * (player.Character.HumanoidRootPart.Velocity.Magnitude) / 10);
SwaySpring:shove(Vector3.new(-MouseDelta.X / 50, MouseDelta.Y / 75, 0));
local UpdatedBobble = BobbleSpring:update(dt);
local UpdatedSwaySpring = SwaySpring:update(dt);
self.Instance.HumanoidRootPart.CFrame = self.Instance.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(UpdatedBobble.Y, UpdatedBobble.X, 0))
self.Instance.HumanoidRootPart.CFrame *= CFrame.new(UpdatedSwaySpring.X, UpdatedSwaySpring.Y, 0)
GunComponents.Sight.CFrame = GunComponents.Sight.CFrame:Lerp(self.Instance.HumanoidRootPart.CFrame , AimAlpha.Value);
end)```