I am working on my viewmodel for my fps game and I will be using ROBLOX animations. When I zoom in, it messes with the player and the player starts moving everywhere. Since the hold animation is playing, I cannot set CanCollide to false. Every part that is animated will have CanCollide set to true. The viewmodel's parent is camera so when I zoom in it would just throw my player off my map. Any suggestions on how to turn off CanCollide while a part is being animated?
(https://gyazo.com/a541e467e4656b2756503a2238289f56)
Try using collisiongroups. Might solve the issue for you. If it does not, try using
game:GetService("RunService").RenderStepped:Connect(function( -- input code that makes your gun uncollideable end)