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

Can you make blocks only collide with certain blocks?

Asked by 7 years ago
Edited 7 years ago

First off I'm not asking for a code just a method of doing this. Is it possible to filter which blocks a block collides with, similar to how you filter which blocks and ray can pass? I have no idea where to start with this. Basically I want to make it so that players can drive around in vehicles (obviously you need it to collide with the ground, walls, etc.), but I do not want them to collide with other players and their vehicles. I tried doing some research on google but I couldn't find anything.

0
I don't think that's possible, but for the players you might be able to edit the player model and turn off CanCollide for the players. I have seen games in which the player can walk thru other players. Eyeball53 2 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

I don't think you can, no.

CanCollide is the only way to turn off collisions as far as I'm aware, and that's a very simple true/false value, no filter.

Sorry

0
Thanks for the response. I think I'll just make it so that the other player's cars are local, and make them no-collide and anchored. It will be stuttery, but the only way I can see it being possible. patch523 20 — 7y
Ad

Answer this question