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

Hi guy's! I was wandering how you would make Parts fall though Parts but NOT people?

Asked by
Soulzs 0
10 years ago

Hey I need help. I have a game were when you fall though water some studs under it devolves bricks but if i make it can collide and put it higher. The bricks devolve as well as people's gear. Please help.

So a script the allow Bricks though a part but not a Humanoid.

1 answer

Log in to vote
0
Answered by 10 years ago
local parts = {Workspace.Part} 
for i, v in next, parts do
    v.Touched:connect(function(p) if game.Players:GetPlayerFromCharacter(p.Parent) then
        v.CanCollide = true
        else
        v.CanCollide = false
        end
    end)
end
Ad

Answer this question