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 shoot through a CanCollide = true?

how can i have a gun shoot through a CanCollide = true block

1 comment

0

u make the guns part not collide-able XD

1 answer

A couple methods:

  1. CanCollide = true will block things like BodyVelocity, but won't block you animating the projectile with CFrame (advancing the position as frequently as possible). Of course, if you're using BodyVelocity, you can just set the projectile's CanCollide to false.
  2. Set the block you want the projectile to get through on a different CollisionGroupId (see SetPartCollisionGroup). Put the projectile on a different collision group and then configure them so that they don't collide using the PhysicsService.

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