I'm trying to code a Player-Player Collisions system. But Player and Player are still be able to collide each other Note: Im in Local Server Testing Mode
game.Players.PlayerAdded:Connect(function(plr)
local PhysicsService = game:GetService("PhysicsService")
local Character = plr.Character
local PlayerCollisionGroup = PhysicsService:CreateCollisionGroup("Players")
PhysicsService:CollisionGroupSetCollidable(PlayerCollisionGroup, PlayerCollisionGroup, false)
for index, value in pairs(Character:GetDescendants()) do
if value:IsA("BasePart") then
value.CollisionGroupId = PhysicsService:GetCollisionGroupId("Players")
end
end
end)
