Advertisement
Guest User

Roblox No Player Collisions Script

a guest
Mar 27th, 2020
19,472
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 2 0
  1. local PhysicsService = game:GetService("PhysicsService")
  2. PhysicsService:CreateCollisionGroup("Players")
  3.  
  4. PhysicsService:CollisionGroupSetCollidable("Players", "Players", false)
  5.  
  6. game.Players.PlayerAdded:Connect(function(plr)
  7. plr.CharacterAdded:Connect(function(char)
  8. repeat wait(1) until char:WaitForChild("Humanoid")
  9.  
  10. for _, characterPart in pairs(char:GetChildren()) do
  11. if characterPart:IsA("BasePart") then
  12. PhysicsService:SetPartCollisionGroup(characterPart, "Players")
  13. end
  14. end
  15. end)
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement