Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i shoot through a CanCollide = true? [closed]

Asked by 6 years ago

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

0
u make the guns part not collide-able XD greatneil80 2647 — 6y

Closed as Not Constructive by hiimgoodpack and TheHospitalDev

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 6 years ago
Edited 6 years ago

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.
Ad