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

Поділитися
Вставка
  • Опубліковано 24 січ 2025

КОМЕНТАРІ • 540

  • @AlvinBlox
    @AlvinBlox  4 роки тому +74

    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 роки тому +1

      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 роки тому +2

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

    • @AlvinBlox
      @AlvinBlox  4 роки тому +8

      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
    @technoholic5189 4 роки тому +97

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

  • @JoeEngo
    @JoeEngo 4 роки тому +221

    *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 роки тому +5

      what is cframe : 10:39

    • @MewMew00001
      @MewMew00001 4 роки тому +1

      Thanks can you keep doing this lol

    • @blueroses6305
      @blueroses6305 4 роки тому +6

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

    • @theturtlegod2843
      @theturtlegod2843 4 роки тому

      you can't make a game with mobile

  • @maddkat420
    @maddkat420 3 роки тому +27

    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
    @jordonbyrne1566 4 роки тому +22

    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 роки тому +11

      I appreciate that Shot, thank you very much :)

  • @FaithWarrior00
    @FaithWarrior00 3 роки тому +5

    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!

  • @rapro9037
    @rapro9037 Рік тому +24

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

  • @DwaynTheBlock
    @DwaynTheBlock 2 роки тому +5

    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!!!!

  • @hawkleslayer8931
    @hawkleslayer8931 4 роки тому +7

    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. (:

  • @MrBristaLeg
    @MrBristaLeg 4 роки тому +24

    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

  • @sherk7937
    @sherk7937 4 роки тому +39

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

    • @AlvinBlox
      @AlvinBlox  4 роки тому +14

      Hehe

    • @zakihdr777
      @zakihdr777 4 роки тому +1

      uhh he changed his mic

    • @dusty3357
      @dusty3357 4 роки тому +1

      @@zakihdr777 VIBE KILLER

    • @daviesjustine7670
      @daviesjustine7670 4 роки тому +1

      @@zakihdr777 hes talking about alvins first few youtube videos

    • @noxious_nights
      @noxious_nights 4 роки тому +8

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

  • @daimian11x62
    @daimian11x62 4 роки тому +6

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

  • @danielxisthename
    @danielxisthename 3 роки тому +4

    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 3 роки тому

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

    • @zaidsham3
      @zaidsham3 3 роки тому +4

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

  • @callumisdumb
    @callumisdumb 4 роки тому +4

    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 роки тому +5

      Thanks very much mate. Glad I could help you!

  • @ram22may35
    @ram22may35 4 роки тому +1

    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!

  • @Chieme0
    @Chieme0 4 роки тому +2

    Ur tutorials literally give me brain cells ... tysm

  • @zeno8185
    @zeno8185 4 роки тому +1

    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

  • @ietzplay4099
    @ietzplay4099 4 роки тому

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

  • @Anthony-zl5cb
    @Anthony-zl5cb 2 роки тому +6

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

  • @bxbyluu9592
    @bxbyluu9592 4 роки тому +1

    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❤

  • @thetruereeee
    @thetruereeee 2 роки тому

    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

  • @J4Y_JP
    @J4Y_JP 3 роки тому +1

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

  • @cat1196
    @cat1196 4 роки тому +7

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

    • @vaporre6424
      @vaporre6424 3 роки тому

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

  • @earf0
    @earf0 4 роки тому +26

    I wanted something like this for my plane, TY!

    • @AlvinBlox
      @AlvinBlox  4 роки тому +12

      Glad I could help.

    • @LightLucky
      @LightLucky 4 роки тому +2

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

    • @Heheheh21231
      @Heheheh21231 4 роки тому

      Hi

  • @thegreenlaser5784
    @thegreenlaser5784 4 роки тому

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

  • @fusion3395
    @fusion3395 3 роки тому +1

    16 minutes into your video and i already learned so much

  • @shinyow
    @shinyow 4 роки тому +2

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

  • @Xodack5
    @Xodack5 4 роки тому +10

    Finally a in depth tutorial on cframes.

    • @adamsalih2859
      @adamsalih2859 4 роки тому

      @discent7 hey u can ask the people in dev forum

    • @loly_yt1538
      @loly_yt1538 4 роки тому

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

    • @nikos4677
      @nikos4677 3 роки тому +1

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

  • @blessings6202
    @blessings6202 4 роки тому +4

    I used to watch these videos all night for fun

  • @joshfreeman3999
    @joshfreeman3999 4 роки тому +1

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

  • @khuwtie
    @khuwtie 4 роки тому +2

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

    • @AlvinBlox
      @AlvinBlox  4 роки тому +2

      No worries mate :DDD

  • @RogerioDec
    @RogerioDec 4 роки тому

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

  • @abdullahsamy5778
    @abdullahsamy5778 4 роки тому

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

  • @NotFallen_21
    @NotFallen_21 2 роки тому

    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.

  • @fredsmith6324
    @fredsmith6324 4 роки тому +2

    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!

  • @ADB-_
    @ADB-_ 4 роки тому

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

  • @Hadev123
    @Hadev123 Рік тому

    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.

  • @Archman155
    @Archman155 4 роки тому

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

  • @elitedfmaster8925
    @elitedfmaster8925 4 роки тому +1

    AlvinBlox you should make a video on how to make a laser gun.with GUI that allows you to change it from automatic to semi or burst shots.

  • @SteelKidGaming
    @SteelKidGaming 4 роки тому

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

  • @sketchcatandsterlingthedoo3193
    @sketchcatandsterlingthedoo3193 3 роки тому +2

    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 3 роки тому +1

      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

  • @osubswith0vids543
    @osubswith0vids543 4 роки тому +1

    this is so helpful Alvin thank you!

  • @malachirasheed
    @malachirasheed 4 роки тому +1

    *Cframe is basically the Orientation and the Position, All at the same time.*

  • @relic4948
    @relic4948 4 роки тому

    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.

  • @PoppinCorn
    @PoppinCorn 4 роки тому +1

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

  • @KadenAE
    @KadenAE 4 роки тому +1

    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

  • @elpapaito9141
    @elpapaito9141 3 роки тому

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

  • @duck_iscool
    @duck_iscool 3 роки тому

    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

  • @DaGoatStoriez
    @DaGoatStoriez 4 роки тому +1

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

  • @hamzaanees2811
    @hamzaanees2811 4 роки тому

    Amazing Tutorials! Really hope you keep making them!

  • @charalamposcharalampous9404
    @charalamposcharalampous9404 2 роки тому

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

  • @blispy
    @blispy 4 роки тому +1

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

  • @haxis3764
    @haxis3764 4 роки тому +1

    Wow, it sure is great to be a member!

    • @AlvinBlox
      @AlvinBlox  4 роки тому +4

      Glad you’re enjoying the experience :)

    • @howlerr08
      @howlerr08 4 роки тому +2

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

    • @AlvinBlox
      @AlvinBlox  4 роки тому +3

      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"

  • @plenxtill3291
    @plenxtill3291 2 роки тому

    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

  • @ravpaulgaming5114
    @ravpaulgaming5114 4 роки тому +1

    I really needed this. Thanks

  • @amourousity6548
    @amourousity6548 4 роки тому +3

    for the last part, you can also make a part go forward 10 studs by doing Part.CFrame = Part.CFrame*CFrame.new(0,0,-10)

  • @DravenFNM
    @DravenFNM 3 роки тому

    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

  • @wiskon4437
    @wiskon4437 4 роки тому

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

  • @relic4948
    @relic4948 4 роки тому

    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.

  • @Alex-ql4od
    @Alex-ql4od 4 роки тому

    So useful thanks a bunch Alvin!

  • @Billie_ArenaDev
    @Billie_ArenaDev 4 роки тому +1

    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.

  • @felipemartins8185
    @felipemartins8185 Рік тому

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

  • @nlaps
    @nlaps 4 роки тому +2

    @AlvinBlox maybe tutorial on TeleportService and how to make a server browser would be really nice. Cheers bro.

  • @mckamsocomic487
    @mckamsocomic487 4 роки тому +1

    Nice i love you videos bro keep up the work!

  • @qwertoony8725
    @qwertoony8725 3 роки тому

    this is the best tutorial i have ever seen

  • @TheScorched
    @TheScorched 4 роки тому +1

    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.

  • @Vortex-qb2se
    @Vortex-qb2se 4 роки тому +3

    One thing I was always wondering is why all programming languages use radians by default when people understand degrees better :-|

  • @TendouAris
    @TendouAris 4 роки тому

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

  • @upsidedownsmileyface4302
    @upsidedownsmileyface4302 4 роки тому

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

  • @michaelepica3564
    @michaelepica3564 4 роки тому

    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

  • @keinsteinaldinheim3959
    @keinsteinaldinheim3959 4 роки тому

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

  • @_bobux_9740
    @_bobux_9740 4 роки тому

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

  • @B.Hustle
    @B.Hustle 2 роки тому

    Thanks for the tutorial! Love it 🥰

  • @ilykhoked6565
    @ilykhoked6565 4 роки тому +1

    Hi Alvin!!!

  • @AbstractAllen
    @AbstractAllen 3 роки тому +3

    feels like a math lesson

  • @justmrkoala
    @justmrkoala 2 роки тому

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

  • @nathanchen5375
    @nathanchen5375 2 роки тому +1

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

  • @mementomori9922
    @mementomori9922 4 роки тому +2

    Make sure that if you are messing with the CFrame of blocks that you do not have the blocks that you want to move welded to the Baseplate. For half of the video I set up the examples and any blocks on the Baseplate that I moved brought the Baseplate with it lol :p

  • @cone2228
    @cone2228 4 роки тому

    I really like your channel Alvin :D

  • @ankind
    @ankind 3 роки тому

    No one
    Alvin: And so, BOOM!

  • @Chrisz_489
    @Chrisz_489 4 роки тому +1

    your the best Alvin

  • @smallpp5624
    @smallpp5624 4 роки тому

    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..

  • @adrianr.5914
    @adrianr.5914 4 роки тому

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

  • @jtytgaming4585
    @jtytgaming4585 4 роки тому +1

    Woohoo! I am hyped

  • @Naco88
    @Naco88 4 роки тому +5

    Last time I was this early, check-in wasn't even open

  • @AlphaBlox
    @AlphaBlox 4 роки тому +1

    YES! ANOTHER VIDEO :D

  • @yikezamv756
    @yikezamv756 4 роки тому +1

    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 😁💪💪

  • @BrawlBattle
    @BrawlBattle 4 роки тому +1

    What screenshot program are you using?
    Amazing tutorial btw!

  • @patriot7260
    @patriot7260 3 роки тому

    Jesus Christ the deep voice caught me off guard. I remember the younger Alvin.

  • @jackuk2700
    @jackuk2700 4 роки тому

    Wow, amazing! I’m nearly there

  • @edwardjustgaming
    @edwardjustgaming 4 роки тому

    👍👍👍 Loved it 👏🏼👏🏼👏🏼

  • @trakktor0
    @trakktor0 2 роки тому

    Id just like to say, radians are very often used in mathematical branches like trigonometry, AP, etc... pretty much anything that has to do with circles (or right angled triangles since they share properties with a circle) and 1 rad = 180/pi degrees so uh yeah

  • @Hulk-ul9mm
    @Hulk-ul9mm 4 роки тому

    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

  • @Kryptonn682
    @Kryptonn682 4 роки тому +19

    UA-cam: 19 seconds ago
    Comments: 21 hours ago

    • @randax8518
      @randax8518 4 роки тому +5

      Yeah how is that possible? Maybe channel members get access first.

    • @fishyonme6772
      @fishyonme6772 4 роки тому

      Sameeee

    • @nobelyon
      @nobelyon 4 роки тому +1

      @@randax8518 That's the case

    • @magma5267
      @magma5267 4 роки тому +1

      @@randax8518 Channel members get the videos 24 hours earlier

    • @KnownAsReal
      @KnownAsReal 4 роки тому

      1) make a video public then do it quick private and publish it after 24 hours, people that commented first will have their comments 24 hours ago
      2) channel members get access first

  • @OneDirection2V
    @OneDirection2V 3 роки тому +2

    Use zooming, please. It's hard to see the script on my phone and on my computer cause clearly has a smaller screen than yours hence it looks tiny on my screen.

  • @ItsSpaceManPlays
    @ItsSpaceManPlays 4 роки тому

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

  • @yoru83yoru
    @yoru83yoru 2 роки тому

    I appreciate it. It helped a lot.

  • @tamerh7152
    @tamerh7152 4 роки тому

    Alvin I hope you can make alot of advanced scripting tutorials. I prefer to learn coding and then creating my shop. We learn from you :).

  • @proudgalaxy3565
    @proudgalaxy3565 2 роки тому

    A very incredible tutorial

  • @kingfred9
    @kingfred9 4 роки тому +2

    Glad I can see this