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

How make part collide from 1 side ? SOLVED [closed]

Asked by
ErtyPL 129
5 years ago
Edited 4 years ago

I want a 'door' from just 1 part that player can go thru but only from 1 side i mean like texture/decal it's possible to go thru only from 1 side of flat block. All other sides will colide with player.

Please if you can, write all possible ways in lua to do that.

Thank for your patience and all help.

Roblox Strong !!! ~ ErtyPL

Closed as Not Constructive by green271, zblox164, User#21908, and User#19524

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
0
Answered by
y3_th 176
5 years ago

This can simply be done with CollisionGroups. Once the player goes through the door, you can change the CollisionGroup of the player to one that cannot go through the door.

Requests on this forum aren't encouraged, so I will link some resources below so you can construct your own script.

Collision Group Release Blog - https://blog.roblox.com/2017/05/introducing-collision-groups/

Wiki Main Article - https://www.robloxdev.com/articles/Collision-Filtering

Collision Filtering Examples:

https://www.robloxdev.com/articles/Collision-Filtering-and-Groups

https://www.robloxdev.com/articles/Player-Player-Collisions

https://www.robloxdev.com/articles/Collision-Filtering-Team-Doors

Ad