Advertisement
Guest User

Collision Group Script

a guest
Jan 31st, 2020
4,497
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 1 0
  1. game.Players.PlayerAdded:Connect(function(plr)
  2.     wait(1)
  3.     for _,part in pairs(plr.Character:GetDescendants()) do
  4.         if part:IsA("BasePart") then
  5.             game:GetService("PhysicsService"):SetPartCollisionGroup(part,"Players")
  6.         end
  7.     end
  8.     plr.CharacterAdded:Connect(function(char)
  9.         for _,part in pairs(char:GetDescendants()) do
  10.             if part:IsA("BasePart") then
  11.                 game:GetService("PhysicsService"):SetPartCollisionGroup(part,"Players")
  12.             end
  13.         end
  14.     end)
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement