What I want to do is make a collision group for this block called the cobweb in my game. I want players to walk through it but it not to go through land (parts). Pretty simple, so not much explaining.
When the player’s character is spawned you could run a for loop through the characters children and add them to a collision group, or you could add a no-collision constraint.
Although I’m experienced with Roblox Studio, I’ve never learned how to use collision groups. Can you just supply some short example code for the on player added collision grouping and some minor instructions on how to set up the cobweb to the collision group? I will solution you if you if it’ll work.
This might help: Physics Service
I think you can just loop through the player character’s descendants and set the collision group like that.
You should definitely take a look at this:
This will teach you everything there is to know about collision groups.
Default will be just for players collision group, we have to make a new collision group for your “land” that collides with everything, default and cobwebs do not collide with each other.
How would I hook these up to the parts? So far, I tried putting the land’s collision id to 2 or 3 and the cobweb to 1 or 2 and it didn’t work.
Edit: nevermind it worked
Select the part, then click the plus button in the Collision group editor to set it’s group without guessing numbers. The Collision group editor will show blue to represent the current part, and it’s children’s collision group.