Advertisement
dubleeyrblxx

No Player Collision -- Roblox

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