How can I disable players from pushing other players?

When one player bumps into another player, it’ll push them, so I simply want to allow players to still bump into each other but not push each other.

1 Like

You could create a temporary part where the “other” player is and anchor it. Then remove the part when the player that was pushing is no longer touching the player they were trying to push.

If you use a local script it will not affect anyone but the player that is pushing.

You can use collision group and physicsservice, though they’re pretty advanced.
Or you can just use a random no player collision script like this one: here

2 Likes

See the roblox documentation here about collisions

1 Like

did you know how to solve it? i wanna achieve the same thing

1 Like

Hello!

local Players = game:GetService("Players")
local function disablePlayerCollisions(player)
local character = player.Character or player.CharacterAdded:Wait()

for _, descendant in ipairs(character:GetDescendants()) do
        if descendant:IsA("BasePart") then
            descendant.CanCollide = false
        end
    end
end


for _, player in ipairs(Players:GetPlayers()) do
    disablePlayerCollisions(player)
end


Players.PlayerAdded:Connect(function(player)
    disablePlayerCollisions(player)
end)

if you want all players to prevent collisions insert it in server script service,but if you want all players to be untouchable for the client put it in a local script.

What if I want it to collide but not push each other? as in it doesn’t move the player when collided.

2 Likes