The Collisiongroup not found?
Asked by
6 years ago Edited 6 years ago
01 | local PhysicsService = game:GetService( "PhysicsService" ) |
03 | local forcefield 1 = game.Workspace.Collision.WashmachineSepcial.Fenster |
04 | local forcefield 2 = game.Workspace.Collision.MEGAWONDERS.Fenster |
05 | local forcefield 3 = game.Workspace.Collision.Washmachine 5. Fenster |
06 | local crate = game.Workspace.Collision.WashmachineSepcial.Unanchored:GetChildren() |
07 | local crate 2 = game.Workspace.Collision.MEGAWONDERS.minWONDERS:GetChildren() |
08 | local crate 3 = game.Workspace.Collision.Washmachine 5. Unanchored:GetChildren() |
09 | local crate 4 = game.Workspace.Collision.MEGAWONDERS.Washmachine 1 WONDERS:GetChildren() |
12 | local forceFieldGroup = "ForceFieldGroup" |
13 | local crateGroup = "CrateGroup" |
15 | PhysicsService:CreateCollisionGroup(forceFieldGroup) |
16 | PhysicsService:CreateCollisionGroup(crateGroup) |
18 | PhysicsService:SetPartCollisionGroup(forcefield 1 ,forcefield 2 , forcefield 3 , forceFieldGroup) |
19 | PhysicsService:SetPartCollisionGroup(crate,crate 2 , crate 3 , crate 4 , crateGroup) |
21 | PhysicsService:CollisionGroupSetCollidable(forceFieldGroup, "Default" , false ) |
I'm trying to make objects not going through a window but players can go through a window.
I'm getting the error
- Collision Group does not exist.
- Stack Begin
- Script 'Workspace.Script', Line 18
- Stack End