How to make player can't pushing each other?

Are there any ways to prevent this? I saw many Roblox games that can’t push other players but I don’t know how to do it.

You’d use collision groups to configure what the player is able to collide with. Here’s a link to learn more about collision groups.

1 Like

Thanks a lot. So, basically, I create a collision group called “player” and tick off the box on the player row from the player column and put this script inside StarterCharacterScripts and it’s working now.

local character = script.Parent

-- set player collision group
for i , v in pairs(character:GetDescendants()) do
	if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
		PhysicsService:SetPartCollisionGroup(v, "player")
	end
end
1 Like