I want to make a ball not collide with a player but the player still collides with it

I am making a script for a football / soccer ball and I dont want to player to collide with the ball since botth the ball and player fly. I used Collision Groups but they are not working.

here’s my script:

local Players = game:GetService("Players")

-- Function to set the collision group for all parts of a character
local function setCollisionGroup(character)
    for _, part in ipairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
			part.CollisionGroup = "Plr"
        end
    end
end

-- Connect function to player's character added event
Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(setCollisionGroup)
end)

-- Apply collision group to all existing players' characters
for _, player in ipairs(Players:GetPlayers()) do
    if player.Character then
        setCollisionGroup(player.Character)
    end
    player.CharacterAdded:Connect(setCollisionGroup)
end

This isnt needed when it already is done when a player // character is added.

So you have a group for the ball and a group for the player, and you made sure that they don’t collide in the editor?

What Exactly do you want to do? I don’t get It.
Like…What exactly does It mean one collides and the other doesn’t?
If one collides with the other, wouldn’t the other also collide with It?(According to physics)
:face_with_raised_eyebrow: :face_with_raised_eyebrow: :face_with_raised_eyebrow:

I fixed it, thanks for your time though!