So I got this script from the Roblox wiki but modified it to work with my game and what I intend to do with it. It is supposed to make Plane be the only thing that collides with it and this is the first time I am using the new Collision Groups. I put this in the ServerScriptService and when I run the game, I get this message in the output: "23:24:16.063 - Parameter 2 must be BasePart in SetPartCollisionGroup." What does that mean and how do I configure this script to work with my intention?
local PhysicsService = game:GetService("PhysicsService")
local forceField = game.Workspace.Conveyor
local crate = game.Workspace.Plane
local forceFieldGroup = "ForceFieldGroup"
local crateGroup = "CrateGroup"
PhysicsService:CreateCollisionGroup(forceFieldGroup)
PhysicsService:CreateCollisionGroup(crateGroup)
PhysicsService:SetPartCollisionGroup(forceField, forceFieldGroup)
PhysicsService:SetPartCollisionGroup(crate, crateGroup)
PhysicsService:CollisionGroupSetCollidable(forceFieldGroup, "Default", false)
