What Is CFrame? | Roblox CFrame Tutorial | LookVector, Angles & More!

Тәжірибелік нұсқаулар және стиль

What is CFrame on Roblox? In this tutorial you’ll learn CFrame basics such as CFrame Angles and LookVector so that you can rotate and position not only objects but also the camera! We also go through useful functions such as Lerp, as well as the interesting properties lookVector, upVector and rightVector which are really useful for moving objects in different directions!
Support my work by becoming a Channel Member. Link below:
► / @alvinblox
Subscribe to my KZread channel for more scripting videos:
►kzread.info?sub...
► Watch my full beginner scripting series: goo.gl/k3erz2
0:00 What is Position?
10:40 What is CFrame?
24:41 Lerp (Linear Interpolation)
31:03 Camera CFraming
35:33 lookVector, upVector, rightVector
Got video suggestions or feedback? Contact me via my website
►www.alvinblox.com/
Roblox username: Alvin_Blox
The music in this video is licensed from Epidemic Sound
www.epidemicsound.com

Пікірлер: 546

  • @AlvinBlox
    @AlvinBlox4 жыл бұрын

    Thanks to my Channel Members for supporting my content. They got to see this video first, before anyone else! Enjoy! (Click the Join button or go to www.alvinblox.com/join if you are interested in joining Membership)

  • @user-rv4nh5cs6b

    @user-rv4nh5cs6b

    4 жыл бұрын

    alvin im about to give up on my roblox game my user is lolgamer0309 man the scripting is hard af

  • @GmLovesWaffles

    @GmLovesWaffles

    4 жыл бұрын

    this helpful alot thx alvinblox

  • @MattBlox360

    @MattBlox360

    4 жыл бұрын

    AlvinBlox can’t wait to watch the video! Been waiting for this!

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    keep going, I had the same struggles as you but never gave up

  • @howlerr08

    @howlerr08

    4 жыл бұрын

    There is no join BUTTON and on /join it says unaavailable for purchase

  • @technoholic5189
    @technoholic51894 жыл бұрын

    Still can't believe we are getting these quality tutorials for free

  • @JoeEngo
    @JoeEngo4 жыл бұрын

    *TIMESTAMPS:* What Is Position?: 0:00 - 10:33 What Is CFrame?: 10:34 - 24:34 What Is Lerp?: 24:40 - 31:01 What Is LookVector?: 35:35 - 42:00 FOR MY MOBILE BROS!

  • @mrdyatlov1809

    @mrdyatlov1809

    4 жыл бұрын

    holy shi this video is very long

  • @manieshv9666

    @manieshv9666

    4 жыл бұрын

    what is cframe : 10:39

  • @MewMew00001

    @MewMew00001

    4 жыл бұрын

    Thanks can you keep doing this lol

  • @blueroses6305

    @blueroses6305

    4 жыл бұрын

    You know on mobile you can still use time stamps from the description

  • @theturtlegod2843

    @theturtlegod2843

    3 жыл бұрын

    you can't make a game with mobile

  • @maddkat420
    @maddkat4202 жыл бұрын

    Thank you for all the work you have put into making these videos. Im a hobbyist programmer for 20+ years and just recently got into roblox and lua. With your videos and some others I have managed to get a great start on a game I wanted to make. You have taught this old dog many new tricks and when my game is done you will be in the credits list. Thank You!

  • @jordonbyrne1566
    @jordonbyrne15664 жыл бұрын

    I just renewed the membership because I think you work really hard on these videos and that you are choosing to use your time to help us. Tysm for all the help!

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    I appreciate that Shot, thank you very much :)

  • @suprema_si3343
    @suprema_si33432 жыл бұрын

    I pulled a model rotation script off of some fourm site a little while back and had 0 knowledge of what CFrame is or what it does. After watching this video, I now have a perfect understanding of the property and its potential uses. Thank you so much!

  • @DwaynTheBlock
    @DwaynTheBlock Жыл бұрын

    I always thought Alvin's tutorials were hard to understand, but I was actually able to use his advice to fix a problem I had, and learn some extra information. DANG this guy is good for learning Code!!!!

  • @daimian11x62
    @daimian11x624 жыл бұрын

    Thank you, I was so confused about CFrame and you made it so easy!

  • @rapro9037
    @rapro9037 Жыл бұрын

    Me, a math nerd laughing at "Nobody Uses Radians"

  • @ram22may35
    @ram22may354 жыл бұрын

    I just started your 2020 beginner scripting tutorials and im now in lesson 10 so thanks if you can see this it really helps me so much and i now can make a few things happen in my game without even searching a script for it in the toolbox it really helped me out thx again!

  • @whosross
    @whosross4 жыл бұрын

    Wahoo! Thanks so much! This is the reason why I support you for good tutorials like these! :)

  • @thegreenlaser5784
    @thegreenlaser57844 жыл бұрын

    woohoo, I asked for CFrame yesterday in the community post, and here it is! Thx Alvin

  • @J4Y_JP
    @J4Y_JP2 жыл бұрын

    I've been looking for lookvector for so long thank you!

  • @RamenBlx
    @RamenBlx3 жыл бұрын

    Ur tutorials literally give me brain cells ... tysm

  • @hawkleslayer8931
    @hawkleslayer89314 жыл бұрын

    cool tutorial and well explained. CFrames are used for lots of thing like fireballs, cars and even enemies so you explained it well and i hope you are happy with yourself. (:

  • @Archman155
    @Archman1554 жыл бұрын

    YES! I have been waiting for this for AGES! Tysm

  • @ietzplay4099
    @ietzplay40993 жыл бұрын

    Bro, i watched you from like when you were a kid and look at you now. Puberty hit ya hard

  • @zeno8185
    @zeno81854 жыл бұрын

    If you never made videos I would still be trying to figure out on how to anchor a block im glad that you are here

  • @bxbyluu9592
    @bxbyluu95923 жыл бұрын

    I haven't commented for a while. But thanks Alvin for all ur hard work. Im trying to improve my living situation, and dev when I have free time. I want to do this for a living so I can support myself. And I feel like I can bc of you. I love u❤

  • @ADB-_
    @ADB-_4 жыл бұрын

    Put this video in Roblox scripting series playlist, love what you are doing

  • @abdullahsamy5778
    @abdullahsamy57784 жыл бұрын

    hi alvinblox i learned soo much from your videos thank you very much, i am watching your videos every day

  • @callumisdumb
    @callumisdumb4 жыл бұрын

    Hey Alvin! Thank you for being such a help to me when I am just beginning scripting on Roblox! This is why I bought membership!

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Thanks very much mate. Glad I could help you!

  • @fusion3395
    @fusion33953 жыл бұрын

    16 minutes into your video and i already learned so much

  • @earf0
    @earf04 жыл бұрын

    I wanted something like this for my plane, TY!

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Glad I could help.

  • @LightLucky

    @LightLucky

    4 жыл бұрын

    it will be easier to make plane with body position and body velocity

  • @gadx3250

    @gadx3250

    3 жыл бұрын

    Hi

  • @hamzaanees2811
    @hamzaanees28114 жыл бұрын

    Amazing Tutorials! Really hope you keep making them!

  • @khuwtie
    @khuwtie4 жыл бұрын

    YES!! IVE WANTED TO LEARN MORE ABOUT CFRAMES THANK YOU!

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    No worries mate :DDD

  • @cloudfresh1449
    @cloudfresh14494 жыл бұрын

    I was just Wondering what is CFrame and you upload ty.

  • @felipemartins8185
    @felipemartins8185 Жыл бұрын

    That's really in-depth, thank you very much!

  • @charalamposcharalampous9404
    @charalamposcharalampous9404 Жыл бұрын

    Exactly what i was looking for! Thanks for the informative video

  • @Alex-ql4od
    @Alex-ql4od4 жыл бұрын

    So useful thanks a bunch Alvin!

  • @SteelKidGaming
    @SteelKidGaming4 жыл бұрын

    My friend here has the Lerp between mature and fun, absolutely amazing person! Information is crazily easy to digest!

  • @joshfreeman3999
    @joshfreeman39994 жыл бұрын

    I already know this is a very helpful tutorial to anyone who does not know how to do this

  • @osubswith0vids543
    @osubswith0vids5434 жыл бұрын

    this is so helpful Alvin thank you!

  • @PoppinCorn
    @PoppinCorn4 жыл бұрын

    very nice video these little tricks and tips about cframing can take scripting a long way

  • @RogerioDec
    @RogerioDec4 жыл бұрын

    Definitively this is the best Roblox tutorial channel on the net 👍

  • @upsidedownsmileyface4302
    @upsidedownsmileyface43024 жыл бұрын

    Tysm Alvin this was actually what I was stuck on in my game that I'm making 😀

  • @blessings6202
    @blessings62024 жыл бұрын

    I used to watch these videos all night for fun

  • @blessings6202

    @blessings6202

    4 жыл бұрын

    Thx for liking it alvin :D

  • @B.Hustle
    @B.Hustle Жыл бұрын

    Thanks for the tutorial! Love it 🥰

  • @TendouAris
    @TendouAris3 жыл бұрын

    I feel like i learned much more about CFrame thanks :D

  • @Random69-
    @Random69- Жыл бұрын

    This helped so much. Even though this is two years old! I understanded everything, i would recommend this to anyone who is trying to learn how to script.

  • @sherk7937
    @sherk79374 жыл бұрын

    Oh my god his voice has changed since his first few videos. It feels like ive watched someone grow up

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Hehe

  • @zakihdr777

    @zakihdr777

    4 жыл бұрын

    uhh he changed his mic

  • @dusty3357

    @dusty3357

    4 жыл бұрын

    @@zakihdr777 VIBE KILLER

  • @daviesjustine7670

    @daviesjustine7670

    4 жыл бұрын

    @@zakihdr777 hes talking about alvins first few youtube videos

  • @noxious_nights

    @noxious_nights

    4 жыл бұрын

    People who've been watching since he first started his channel: "I raised this boy"

  • @fredsmith6324
    @fredsmith63244 жыл бұрын

    great vid as always, your ability to explain things clearly never fails. thanks. looking forward to your vid on "ToWorldSpace" and "ToObjectSpace". i've had some trouble understanding those and they are important. also when you type in the commands, it's so small it can be hard to see, especially if it's down at the bottom of the screen. the youtube controls obscure it when i pause to read the command closely. so please always keep the commands up from the bottom of the screen and enlarge the text if possible. thanks!

  • @MrBristaLeg
    @MrBristaLeg4 жыл бұрын

    Your one of my favorite scripting you tubers this helped a lot I don’t even think you’ll read this but if you do just know your very good at stuff thank you for all the work you’ve done Sincerely MrBristaLeg Ps I recently became a member

  • @haxis3764

    @haxis3764

    4 жыл бұрын

    Agreed

  • @tameronica

    @tameronica

    4 жыл бұрын

    Agreed

  • @ahmedshahzad156

    @ahmedshahzad156

    4 жыл бұрын

    Agreed

  • @qwertoony8725
    @qwertoony87252 жыл бұрын

    this is the best tutorial i have ever seen

  • @cat1196
    @cat11963 жыл бұрын

    I feel like a pro scripter after learning scripting from him, i became a successful SOLO dev

  • @vaporre6424

    @vaporre6424

    2 жыл бұрын

    really? what's your game? I wanna try it

  • @ravpaulgaming5114
    @ravpaulgaming51144 жыл бұрын

    I really needed this. Thanks

  • @thetruereeee
    @thetruereeee Жыл бұрын

    it took me about a week to realize that look vector wouldn't have CFrame * look vector * a number, until I watched this video and it all made sense thank you so much

  • @wiskon4437
    @wiskon44374 жыл бұрын

    Hey Alvin, I have bought a book on kindle which teaches me Lua so now I am learning to code in Roblox!

  • @plenxtill3291
    @plenxtill32912 жыл бұрын

    oml thank you so much for this video, i was trying to make a tree generator like lumber tycoon 2 and couldnt figure out how to make the branches move up where theyre facing. tysm againnnnn

  • @Xodack5
    @Xodack54 жыл бұрын

    Finally a in depth tutorial on cframes.

  • @adamsalih2859

    @adamsalih2859

    3 жыл бұрын

    @discent7 hey u can ask the people in dev forum

  • @loly_yt1538

    @loly_yt1538

    3 жыл бұрын

    @Discent257 you need to write while true do wait () So it doesn't crash

  • @nikos4677

    @nikos4677

    3 жыл бұрын

    then you havent seen the dev forum. There are doing some crazey things with cframes

  • @justmrkoala
    @justmrkoala2 жыл бұрын

    thanks now i understand what cframe is and i can finally understand teleporting

  • @ItsSpaceManPlays
    @ItsSpaceManPlays4 жыл бұрын

    Thanks i understand CFrames now and I am making my own game!

  • @adrianr.5914
    @adrianr.59143 жыл бұрын

    alvin blox thank you so much for you videos its only by you I became a good scripter thank you

  • @DreZaM
    @DreZaM2 жыл бұрын

    Thank you very much, so useful tutorial

  • @shinyow
    @shinyow4 жыл бұрын

    I have needed this video for soo long. Also, Alvin is british ;) FINALLY A KZreadR WHO DOESNT SAY zee

  • @A_Kiwi.
    @A_Kiwi.4 жыл бұрын

    thanks for this vid i was thinking about cframe so yeah

  • @relic4948
    @relic49483 жыл бұрын

    Been scripting for a year and still haven’t gotten a full grasp of CFrame (I even looked at AxisAngle’s post but I’m rather thick). This really helps.

  • @cone2228
    @cone22284 жыл бұрын

    I really like your channel Alvin :D

  • @Hadev123
    @Hadev12311 ай бұрын

    lerping is so useful if you are dealing with the camera because what if you want to make the camera position itself directly in the center of the 2 players for a fighting game.

  • @sketchcatandsterlingthedoo3193
    @sketchcatandsterlingthedoo31933 жыл бұрын

    Love the info! Thanks Alvin! Quick critique though (I'm sure you've already noticed) but the video's progress bar covers up the script that is written in the command prompt and the command prompt's script is tiny. The info is well worth the extra effort to watch though, so keep up the good work!

  • @bush3126

    @bush3126

    2 жыл бұрын

    Yeah, but the command print is so hard to read on a smaller device, had to make out words with the pixels

  • @potato194

    @potato194

    2 жыл бұрын

    Yeah, it is quite small and gets covered up. Still, it's a very good tutorial other then that! :D

  • @mckamsocomic487
    @mckamsocomic4874 жыл бұрын

    Nice i love you videos bro keep up the work!

  • @danielxisthename
    @danielxisthename2 жыл бұрын

    23:10 "Nobody I dont think ever uses radians". It's quite the opposite in programming, we always try to use radians over degrees to avoid cases such as 200 + 200 degrees and 20 degrees - 50 degrees and so on. It's good to learn radians since it's used in math classes as well.

  • @coolcarl2232

    @coolcarl2232

    2 жыл бұрын

    i think he meant that nobody uses radians in roblox but ok

  • @zaidsham3

    @zaidsham3

    2 жыл бұрын

    @@coolcarl2232 roblox scripting is just like real scripting,learn it the right way to get it to the next level

  • @neothelurker
    @neothelurker4 жыл бұрын

    AlvinBlox is really good at using Camtasia

  • @DravenFNM
    @DravenFNM2 жыл бұрын

    Wow! Learnt so much about CFrames through this video.. and that's basically how monsters look at you whilst your moving, you write the script in a while loop: while true do game.Workspace.Block.CFrame = CFrame.new(game.Workspace.Block.Position, game.Workspace.Plank.Position) task.wait(0.1) end

  • @beeschan7301
    @beeschan73014 жыл бұрын

    yes i needed to know what are cframes

  • @proudgalaxy3565
    @proudgalaxy3565 Жыл бұрын

    A very incredible tutorial

  • @michaelepica3564
    @michaelepica35644 жыл бұрын

    Alvin, I just wanna say you have helped me so much. I want to buy membership but I can't afford :C but oh well. Thank you for making these videos free. I have learned so much, and thanks to you, my first game will be stuff that I make :D

  • @_bobux_9740
    @_bobux_97404 жыл бұрын

    this was posted like at 6 o clock at my time. btw good tutorial

  • @yoru83yoru
    @yoru83yoru2 жыл бұрын

    I appreciate it. It helped a lot.

  • @yourOGgamer21
    @yourOGgamer214 жыл бұрын

    👍👍👍 Loved it 👏🏼👏🏼👏🏼

  • @yikezamv756
    @yikezamv7564 жыл бұрын

    Thx for making it cuz the sword fight tutorial that u make last year sadly u didn't explain and here u are explaining thx really glad u did cuz I was confused You deserve a sub and like Stay strong from the corana virus 😁💪💪

  • @wooyuuu
    @wooyuuu3 жыл бұрын

    Great explanation, thank you.

  • @haxis3764
    @haxis37644 жыл бұрын

    Wow, it sure is great to be a member!

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Glad you’re enjoying the experience :)

  • @howlerr08

    @howlerr08

    4 жыл бұрын

    Where is the join BUTTON? I really want to become a member. It says unaavailable for purchase

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Might not be available in your country unfortunately. Try www.alvinblox.com/join

  • @howlerr08

    @howlerr08

    4 жыл бұрын

    @@AlvinBlox Yes, when I head to /join it said this content is unavailable for purchase. Maybe it really can't in my country because it isnt only you I don't see it on any youtuber who says: "Press the join BUTTON to become a member"

  • @jackuk2700
    @jackuk27004 жыл бұрын

    Wow, amazing! I’m nearly there

  • @Billie_ArenaDev
    @Billie_ArenaDev4 жыл бұрын

    I hope you can make tutorials on much more complicated topics in the future. I can't seem to understand metatables and metamethods at the moment.

  • @zrapid
    @zrapid4 жыл бұрын

    This Looks Very nice :) ur the best by making cool videos ;)

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Thank you so much 😀

  • @sleepyslix1047
    @sleepyslix10474 жыл бұрын

    Thank You! Really helpful.

  • @relic4948
    @relic49483 жыл бұрын

    Been scripting for quite a long time and still haven’t gotten a full grasp of CFrame (I even looked at AxisAngle’s post but I’m rather thick). I’ve been watching you ever since you pronounced GUI as “gooey”. Thanks for the help.

  • @KadenAE
    @KadenAE4 жыл бұрын

    hi Alvin! Just watched half the video and I remember I watched it already.lol. (channel members see it first)

  • @LUMINA3

    @LUMINA3

    3 жыл бұрын

    pov: your words became a website

  • @Chrisz_489
    @Chrisz_4894 жыл бұрын

    your the best Alvin

  • @kingfred9
    @kingfred94 жыл бұрын

    Glad I can see this

  • @howlerr08
    @howlerr084 жыл бұрын

    FINNALY TYVM ALVIN

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    no worries :P

  • @keinsteinaldinheim3959
    @keinsteinaldinheim39594 жыл бұрын

    I was just thinking about CFrames and you upload this video right afterwards, coincidence? Yeah, probably.

  • @jtytgaming4585
    @jtytgaming45854 жыл бұрын

    Woohoo! I am hyped

  • @AlphaBlox
    @AlphaBlox4 жыл бұрын

    YES! ANOTHER VIDEO :D

  • @duck_iscool
    @duck_iscool2 жыл бұрын

    I think Alvin can explain stuff so easily that me (a 11 year old) can understand something like it's flippin making a part manually

  • @elpapaito9141
    @elpapaito91412 жыл бұрын

    Alvin carrying my scripting career finally know how to make a gun with CFrame and Tool events.

  • @nathanchen5375
    @nathanchen53752 жыл бұрын

    Hi Alvinblox! I love this series, however, are you able to continue this advanced series for scripting? Thank you!

  • @Anthony-zl5cb
    @Anthony-zl5cb2 жыл бұрын

    Book Mark for Lerp 24:41 - 31:01 Camera Cframe BookMark 31:03 - 35:31

  • @m7mdgamer_x
    @m7mdgamer_x4 жыл бұрын

    Thank you so much ❤

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    You're welcome 😊

  • @ilgeniodelmundo
    @ilgeniodelmundo3 жыл бұрын

    Thanks for this Video. :)

  • @Echobase22
    @Echobase224 жыл бұрын

    OMG I HAVE NEED THIS

  • @Hulk-ul9mm
    @Hulk-ul9mm4 жыл бұрын

    OMG THANKS FOR MAKING THIS (I haven't watched it all but i will make sure to do so) Also, is there any chance you could do a tutorial about graphic design? Like creating GFXs and stuff, I'm interested in it, and I thought you might be good at it, if you're not able to do that it's fine. :D

  • @TheScorched
    @TheScorched3 жыл бұрын

    If you do something like this, while true do wait(0.01) game.Workspace.Block.CFrame = CFrame.new(game.Workspace.Block.Position, game.Workspace.Bar.Position) end , or something, you can move the block while you're running and the block will always be staring at the bar. You can change this to a character, so the block always stays looking at the character. It's a pretty fun thing you can do.

  • @smallpp5624
    @smallpp56244 жыл бұрын

    Wait r u doing an advanced scripting series?! old because vids won't load on my phone but omg ty so much this is so useful I always wanted to build and script all by myself..

  • @baldboiii1195
    @baldboiii11954 жыл бұрын

    keep up the good work

  • @blispy
    @blispy4 жыл бұрын

    Thanks for the help alvin and congrats getting in a roblox video

  • @AlvinBlox

    @AlvinBlox

    4 жыл бұрын

    Thank you!

  • @Wayhoo
    @Wayhoo4 жыл бұрын

    Thanks!

  • @ilieskecir
    @ilieskecir4 жыл бұрын

    YOU THE BEST !!

  • @THEKING-xk6vs
    @THEKING-xk6vs4 жыл бұрын

    Thanks Alvin

Келесі