Tutorial:Detecting visible parts

In this tutorial, we will create a function that can detect parts the player can see.

To start, insert a in the, and name it "VisibleParts". Next, place a in the. Lastly, insert a into the. We are going to start with the LocalScript. Open the script, and type the following code: This code sets up the basic VisibleParts RemoteFunction.

This tutorial will use Ray Casting to gets seen parts.

Now that the ray casting is set up, we need the final piece of code in the LocalScript.

Now we are going to switch to the Script.

NOTICE: This script is used as an example. Code here is not needed.