#Need help with some PhysicsService Collisions.

3 messages · Page 1 of 1 (latest)

blissful belfry
#

My friend is having problems with the SetPartCollisionsGroup thing, in the pretty old Collisions update I know they depricated some things. I know i'm late but whatever.

(The Update)

SetPartCollisionGroup : To be deprecated. Replaced by calling BasePart.CollisionGroup

CollisionGroupContainsPart : To be deprecated. Replaced by calling BasePart.CollisionGroup

How would I use either of these. This is how he used one of them.

PhysicsService:SetPartCollisionGroup(object, “RaceCars”)

Do I just put BasePart.CollisionGroup in this place of SetPartCollisionGroup
like: object.CollisionGroup(object, “RaceCars”)

Or something else?

sinful slate
#
local PS = game:getService("PhysicsService")

local object = <define object here>

PhysicsService:RegisterCollisionGroup(<collision group name>)

object.CollisionGroup = <collision group name>
#

thats to set an object to a certain collision group