azahid1
(azahid1)
August 23, 2019, 10:19pm
6
I suggest you use Animations for this project. While CFrame might seem good, Animations are in my opinion easier and better on small levels, such as doors.
Animations for doors are much simpler. Here’s an animation door of mine you can pick apart. (it’s a bit old so dont make fun of me for bad coding lol) https://www.roblox.com/library/3688491953/Animatated-Door
If you want to learn more about CFrames, I suggest you check out these two posts.
ROBLOX uses vectors to represent positions and directions of things in the game world.
This is a more mathy post than the CFrame one, but there are no proofs. This is all very useful information.
ROBLOX has a Vector3 and Vector2 class which handles most vector operations. For the purpose of this post, I’ll be describing most things in terms of 2D vectors. All standards are ROBLOX standards (such as x being right, y being up…)
Vector Basics
A vector is a number that can contain any amount of…
#CFrames are how ROBLOX represents the 3D position and orientation of objects in the game world.
Understanding how these work can lead to easier to write, easier to read, and overall more efficient CFrame code.
If you’ve ever done something like:
print(CFrame.new())
you know that it gives you 12 numbers. What do these numbers mean?
Well before we start, let’s think about CFrame.lookVector. lookVector is a unit vector (vector with a magnitude of 1) that points in the direction the CFrame is f…