Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I disable CanCollide while a part is being animated?

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)

1 comment

0

Could you post your code? Or post your attempts? See https://idownvotedbecau.se/NoAttempt and https://idownvotedbecau.se/NoCode for more information

1 answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.