Hi I was looking for a script that made players unable to touch each other does anybody know how to do this?
1 Like
try this
local PS = game:GetService("PhysicsService")
PS:CreateCollisionGroup("Player")
PS:CollisionGroupSetCollidable("Player","Player",false)
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character:WaitForChild("HumanoidRootPart")
Character:WaitForChild("Head")
Character:WaitForChild("Humanoid")
for i,v in pairs(Character:GetChildren()) do
if v:IsA("BasePart") then
PS:SetPartCollisionGroup(v,"Player")
end
end
end)
end)
1 Like
Make the players collision false for both R6 and R15 avatars.