I made Fan (it’s a tool) that player can equip and use to push other players. It has a collider with canCollide = false, canTouch = true, and with Touched:Connect it detects if any player is touching collider.
It worked fine until I decided to use CollisionGroups and set TouchEventsUseCollisionGroups = true:
- I created two groups: Player and Fan. Fan can collide ONLY with Player group.
- I added player to the Player collision group and Fan collider to the Fan group. (Checked it in runtime)
- If Fan collision = false, for some reason Touched:Connect doesn’t work anymore. I set it to true for the sake of experiment. It didn’t help with activating event. But I noticed something strange:
When I start the game to test Fan, its collider collides with the floor part (which is in Default group). I tested that it outside of a tool: Fan collider falls through the ground.
So, I have 2 questions:
- Why Touched:Connect didn’t work?
- Why does collision happen when collider is inside the tool?
I’m completely confused by this interaction and don’t know how to fix it. I also didn’t find explanation in the official documentation for Collisions, Touch and TouchEventsUseCollisionGroups.
Would appreciate any help.
