How to Script on Roblox #7 | Vectors (Vector3), CFrames

Опубликовано: 28 Июль 2026
на канале: Furno
13,371
300

In this seventh episode of "How to Script on Roblox," I explain what "vectors" and CFrames are, and how to use them.

If you want to learn how to create a game on Roblox with Roblox Studio, it's important to know how to comment, script, and code to create complex and original systems for your games and transform your ideas into functional scripts. This way, you'll finally have the ability to create a new game without needing to use pre-made templates.

0:00 What is a vector?

1:31 Modifying vectors with scripts
1:50 Moving a vector based on the local origin
2:55 Orientation vectors
3:51 Orienting a vector based on the local origin
4:03 Why use CFrames?

5:10 Move a part using its CFrame
5:42 Orient a part using its CFrame
7:24 Solve the vector problem with the CFrame
8:14 Retrieve the magnitude of vectors (distance between two points)
10:11 Retrieve the unit between two points (direction vectors)
11:16 Visualize the Unit vector
14:15 End