Help on Physics Service script

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

Other players should not be able to manipulate other parts on the local player’s side.

  1. What is the issue? Include screenshots / videos if possible!

The CollisionGroup code isn’t working as I intended it to. Other players can still go through parts that have a different CollisionGroup.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I’ve tried making the other player’s CanCollide false.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Server Script:

local PlrPhysicsService = "OtherPlrCollisionGroup"
local PartPhysicsService = "PartCollisionGroup"
PhysicsService:RegisterCollisionGroup(PlrPhysicsService)
PhysicsService:RegisterCollisionGroup(PartPhysicsService)
PhysicsService:CollisionGroupSetCollidable(PlrPhysicsService, PartPhysicsService, false)

Local Script:

local localplr = game:GetService("Players").LocalPlayer
local Players = game:GetService("Players")
local PhysicsService = game:GetService("PhysicsService")

task.wait(2)

for _, serverModels in pairs(workspace.ClientedObjects:GetChildren()) do
	serverModels:GetDescendants().CollisionGroup = "PartCollisionGroup"
	print("Success")
end

for i, plrs in ipairs(Players:GetPlayers()) do
	if plrs.Name ~= localplr.Name then
		plrs:GetDescendants().CollisionGroup = "PlrPhysicsService"
	end
end
print("Success")