Player Collision Group Bug

The collision group (so that the player can’t collide with the car) doesn’t work for the player, but it does for any other part.

game:GetService("Players").PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        for _, bodyPart in pairs(Character:GetDescendants()) do
            if bodyPart:IsA("BasePart") then
                bodyPart.CollisionGroup = "Players"
            end
        end
    end)
end)

“Script in ServerScriptService”

robloxapp-20240829-1625509.wmv (2.1 MB)

I know that the collision group works, but apparently not for the player…
How can I fix that issue?

1 Like

as the client handles its own physics, try to switch to the client and then check if the player’s body part has that collision group enabled.

then check if the car has the other one too.

And then make sure the collision group settings has set to make it so the players group and car group don’t collide.

2 Likes

Thanks the Collision Works now i just needed to change the Script inside the ServerScriptService To to Server (RunContext) :grin: :grin: :grin: :grin:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.