Hello Good Day, so im having this problem with Physics Service where I need a certain group of parts not be collidable with the player but collidable everywhere else now the problem is I have followed every topic Ive searched and still it doesnt work, so here’s the code
--// Create Collission
PhysicsService:CreateCollisionGroup("Weapons")
PhysicsService:CreateCollisionGroup("Player")
PhysicsService:CollisionGroupSetCollidable("Player","Weapons",false)
--// Set Collision
function Global:SetCollision(Player,Weapons)
local Char = Player.Character
for _,v in pairs(Char:GetChildren()) do
if v:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(v,"Player")
end
end
for _,v in pairs(Weapons:GetDescendants()) do
if v:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(v,"Weapons")
end
end
end