How would I make a part unable to collide with a player? I want it to still collide with workspace and such but not players.
Collision groups are used to achieve this behavior, more info here:
Ahh that’s great! How would I set the collision group I assumed it would just be:
child.CollisionGroupId = 2
but that didn’t seem to do anything.
local physics = game:GetService("PhysicsService")
local part = workspace:WaitForChild("Part")
local collisionGroupId = 1
physics:SetPartCollisionGroup(part, collisionGroupId)
Some more functions relating to collision groups:
1 Like