Please read
So I have a game here you run around, placing bombs, and hoping someone will get blown up by them. The bombs (at least, the part that collides) are a 4.5 stud wide spheres anchored just above ground. When the bombs are placed, they snap to grid at 5 stud intervals, so if you place 2 beside each other, you will have a 1 stud space. My issue is that these bombs are placed in an enclosed space, less than 7 studs high. The main problem is that when a bomb is placed, the player is inside the bomb, therefore glitching him/her. This is not a problem when the person is standing near the edge of the bomb; they will just be pushed backwards. However, when the bomb is placed, and the player is right in the center, or is against a wall (a likely scenario), the player will get stuck, therefore making him/her lose the round. My idea was that if a player is inside a bomb, it will be detected by the distance from the center of the bomb to the player. I though that you could just make a script that can keep the bomb's CanCollide property to false, until the player is no longer in the bomb. However, this could make it possible for people to walk through bombs, especially if there is more than one player near the bomb. My second idea was to make a script that creates a CollisionGroup for the player and the bomb, and then delete is after the player has left the sphere. Now, I don't think this would work, because 1: I already have a script that disables player-to-player collisions by CollisionGroups, and an item (the player in this case) cannot be in more than one CollisionGroup. Perhaps this won't be such an issue, but 2: What if two players are "inside"? Well yeah I have this kind of problem, I'm not really expecting a full script, but ideas. Thanks.

4 comments
thx, this helps a lot. Ill accept your answer after I test it, if it works. But i see an error here: if a player touches a bomb when he/she is not inside, the .Touched will fire and make the bomb walk-through. Also, are you sure that the CanCollide will affect only one player if changed via a LocalScript? Have you tested it?
Oh, I see what you mean about the error, I've edited the script to try and fix that, but anything done through local scripts will definitely only affect that player if FilteringEnabled is on.
First of all, my game (will probably) have a lot of lag. However, people told me that since the main script is run on the client, the server doesn't have to handle EVERYTHING, so the lag shouldn't be so extreme. Next, I have no idea how to work with FE on. Then, if I enable FE, I have to completely rewrite all my LocalScripts, and my main script is a local one. So basically, my game does not have
scriptinghelpers.org/questions/51968/anything-helps