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

How do I make a script where you can just walk through a part like a door?

Asked by 10 years ago

I am pretty sure there is a script for this, but I am new at studio so there is probably a way to do that without a particular script. Anyways, if someone could help me find a solution it would be very nice.

0
In studio, click on the part and open up the properties window. You will see the property "CanCollide", uncheck the box and that will allow people to walk through the part. FearMeIAmLag 1161 — 10y

4 answers

Log in to vote
2
Answered by 10 years ago

All bricks have a property called CanCollide. It determines if you can walk through the brick or not. Here is the correct way to edit the CanCollide property, script-wise.

--Place this inside of a part. script.Parent references to the object the script is in.

script.Parent.CanCollide = false

If you want the script to be separate from the object, the script would look like:

brick = Workspace.Part --Change 'Part' to the brick's name

brick.CanCollide = false

If you have any other problems, feel free to inbox me.

~Kyo-Chan

Ad
Log in to vote
1
Answered by
devDave 50
10 years ago

Select on the Part then under properties uncheck can collide

0
I WAS JUST GONNA- Darn you time limits... OniiCh_n 410 — 10y
Log in to vote
0
Answered by 10 years ago

Basically, if you want a part you can walk through, go to the Properties window (View>Properties). After that, select the part, and some stuff pops up in the properties window, since there was nothing there before the part was selected.

Now, scroll down until you see an option called "CanCollide". As you will see, the box is checked. Uncheck the box, but also make sure you check in the box that says "Anchored". The Anchored property makes sure the part won't fall through the map into the empty nothingness. So, if you unchecked the CanCollide and checked ijpn the Anchored property, the part is anchored and walk-through.

Log in to vote
0
Answered by 10 years ago

You do NOT need a script, set the cancollide to false, go on a part and go on properties and untick cancollide.

Answer this question