I tried doing this with all the part in the players but they didn't pass through the parts. help ;3
How to make the player Anti CanCollide?
3 answers
This is an unfortunate problem with Humanoids...
Humanoids make sure that Torso/HumanoidRootPart and Head are always Can-Collidable, only way around is to remove Humanoid then re-register controls or have a loop setting the Can-Collide property to false.
Why don't you make the parts that the player touched NonCanCollideable.
And if you don't want some parts to be able to be unCanCollided, then just lock them.
Put this chunk of code in a LocalScript in a client-sided service like the StarterPack or StarterGui.
local player = game.Players.LocalPlayer
function Touched(hit)
if hit.Locked == false then
hit.CanCollide = false
end
end
function TouchEnded(hit)
if hit.Locked == false then
hit.CanCollide = true
end
end
player.CharacterAdded:connect(function(character)
character.Head.Touched:connect(Touched)
character.Head.TouchEnded:connect(TouchEnded)
character.Torso.Touched:connect(Touched)
character.Torso.TouchEnded:connect(TouchEnded)
character["Left arm"].Touched:connect(Touched)
character["Left arm"].TouchEnded:connect(TouchEnded)
character["Right arm"].Touched:connect(Touched)
character["Right arm"].TouchEnded:connect(TouchEnded)
character["Left leg"].Touched:connect(Touched)
character["Left leg"].TouchEnded:connect(TouchEnded)
character["Right leg"].Touched:connect(Touched)
character["Right leg"].TouchEnded:connect(TouchEnded)
end)
Not sure if the second word in the name of the arms and legs are supposed to be capitalized but eh. You can try this if you want.
This is basically a Ghost script, i.e. to walk through walls.
local script
player = game.Players.LocalPlayer
char = player.Character
while wait() do
for _,v in pairs(char:GetChildren()) do
if v:IsA("BasePart") then v.CanCollide = false end
end
end
That's basically what you need.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Why not just make the parts CanCollide?
I did it did not work
Are you sure the part was CanCollide false (unchecked)?
Easy just open explorer and properties, Click the brick you want that you want people to walk through or not to on the properties of the brick slide down until you see Can-collide, tick that box or untick it what ever you want it :) Hope this helped