I tried reading the wiki for collision filtering, but I still couldn't figure it out. I actually have a script already I got from the wiki that allows no player collisions, so is there an easy way to change it so players also don't collide with parts named "Handle" along with players (which is already in the script)?
local PhysicsService = game:GetService('PhysicsService')
PhysicsService:CreateCollisionGroup('Players')
PhysicsService:CollisionGroupSetCollidable('Players', 'Players', false)
local function disableCollision(obj)
if obj:IsA('BasePart') then
PhysicsService:SetPartCollisionGroup(obj, 'Players')
end
end
local function setup(model)
for i, obj in pairs(model:GetDescendants()) do
disableCollision(obj)
end
model.DescendantAdded:connect(function(obj)
disableCollision(obj)
end)
end
game:GetService('Players').PlayerAdded:connect(function(player)
if player.Character then
setup(player.Character)
end
player.CharacterAdded:connect(function(char)
setup(char)
end)
end)

1 comment
lol because i am a very bored person i would simply make a local script in a player making a part cancollide = true while server sidely, part cancollide = false it would work lol