How does workspace.TouchedUseCollisionGroup exactly?

yo i need collision-group-specific touched events i discovered this workspace.TouchedUseCollisionGroup rn but im wondering how it works i can’t find any documentation on google for some reason, some explanation would be great thanks

1 Like

https://create.roblox.com/docs/reference/engine/classes/Workspace#TouchesUseCollisionGroups

1 Like

How workspace.TouchesUseCollisionGroups works

If the property is set to true, then it only allows a certain BaseParts in a certain CollisionGroup to touch it, It can be done using the Collision Group Editor or by putting in game:GetService("PhysicsService"):RegisterCollisionGroup("GroupName") inside a Script and If you configure the CollisionGroup or CollisionGroupId, then it won’t allow certain BaseParts to go activate the Touched() event while others are allowed to

2 Likes

i don’t understand how to get only certain collision groups to trigger the event, do you mean only collision groups registered by the method u gave me will trigger the event incase the property is true?

only parts within the same collision group can trigger .touched events simple as that

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.