Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I disable collision between players?

Asked by 9 years ago

In some points of my game, it's problematic when players bump into each other when trying to solve fast-paced minigames. I tried this, but it didn't quite work, and something tells me it's not this simple.

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(char)
        for _,v in pairs(char:GetChildren()) do
            if v:IsA('Part') then
                v.CanCollide = false
            end
        end
    end)
end)

Answer this question