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

Walk threw able parts ?

Asked by 10 years ago

How do you make a part able to be walk threw able ?

1
Threw is the past tense of throw. "I threw a ball". Through is the word you are looking for. "I walked through the door". User#348 0 — 10y

3 answers

Log in to vote
1
Answered by 10 years ago

Epicyes13 is absolutely correct; however, I will help you scripting-wise. The 'CanCollide' property of a part uses a boolean value, which means true or false. It's rather quite easy to manipulate such through Lua code. Here is an example:

brick = script.Parent --Be sure to put this script inside of a brick
brick.CanCollide = false --Set to false; able to walk through

If you have any further questions, feel free to send me a message through ROBLOX.

~Misclear

Ad
Log in to vote
0
Answered by 10 years ago

In the properties of a part, there is a property called "CanCollide". If you set this to false, or unchecked, objects will go through it. Make sure it is anchored, or else it will fall through the baseplate.

Log in to vote
0
Answered by 10 years ago

There are two ways to do this; through the properties, or through script.

1 To make it walk-through make sure the 'Properties' tab is viewable, select your brick, and uncheck the CanCollide setting. Make sure your brick is Anchored (Another setting, right next to CanCollide) or else it will fall through the baseplate.

2 To make it walk-through via script; you can do this:

game.Workspace.Part.CanCollide = false -- change part to whatever your brick is named
game.Workspace.Part.Anchored = true -- this is so it doesn't fall through the baseplate

Hope I helped :)

Answer this question