Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PhysicsService = game:GetService("PhysicsService")
- local Players = game:GetService("Players")
- PhysicsService:RegisterCollisionGroup("Characters")
- PhysicsService:CollisionGroupSetCollidable("Characters","Characters",false)
- Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- for i,v in next, char:GetDescendants() do
- if v:IsA("BasePart") then
- v.CollisionGroup = "Characters"
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment