Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to have parts that only collide with the player?

I was wondering if it was possible to have parts that only collide with the player. I'm not asking for a script or anything it's just I want to know if anyone has done it, or something similar.

I really need this feature for my game and I don't have any lead on it, so any info would help. A wiki link or a model would be most helpful.

1 comment

0

Yes.

2 answers

Local parts. Place the parts in the camera from a local script. This will make all parts only visible and collidable to the player.

1 comment

0

Unlimitus, well my problem is the part is colliding with local parts. So maybe If i put a camera within the camera that would work?

ahem, place this inside the brick, this may or may not work... :P also the brick will have to be extemely thick! (i dunno if it works :P)

local touching = false

    part.Touched:connect(function(hit)
    	touching = true
    	repeat until part.TouchEnded:wait() == hit
    	touching = false
wait (0.1)
    end)

if touching true then
wait(0.1)
script.Parent.CanColide = true
elseif touching false then
script.Parent.CanColide = false
end

This discussion is preserved as it was. New answers, comments, and votes are closed.