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

What Does The Built-In-Function Faces() Do?

Asked by 6 years ago

I've always found Faces() Really Interesting.

What do they do? What Are they for?

0
Look at the wiki. User#5423 17 — 6y

1 answer

Log in to vote
0
Answered by
IPsec 35
6 years ago
Edited 6 years ago

Faces is a top-level API (similar to Instance) used when working with Handles objects.

If there, as an example, was a part that you only wanted to allow someone to move vertically using a Handles object, you could write:

local handles = Instance.new("Handles", workspace.Part)
handles.Faces = Faces.new(Enum.NormalId.Top, Enum.NormalId.Bottom)

Here is an example of what that looks like

See here for a description of the Handles object.

Ad

Answer this question