When parts are added to a WorldModel they loose their CollisionGroupId property (Or it never gets set?).
However The raw CollisionGroup is kept, and the CollisionGroupId can be manually set after.
Full repo example:
WorldModelGroupIdRepo.rbxl (48.6 KB)
Even after fixing this manually it looks like WorldModel:Raycast still doesn’t respect RaycastParams CollisionGroup, which could be a separate issue, or a further symptom that WorldModel’s don’t respect CollisionGroups at all.
Expected behavior
I expect WorldModel to respect CollisionGroup just like workspace does without having to perform a second manual cleanup step.
Or if WorldModels are unable to use collision groups then I would expect that to be documented somewhere (With an explanation, as this seems like deeply useful and expected behavior)