Roblox Module Scripts (The Right Way)

Поділитися
Вставка
  • Опубліковано 26 чер 2024
  • In this video I talk about using four distinct forms of module scripts and how they can be used in your game and to help improve your data and workflow!
    Want to join the community, learn, ask questions, and hear about new uploads?
    Join the Discord: / discord
    If you want to see more detailed or specific content as well as other topics comment below or join the discord!
    If you enjoyed the video hit the like button and subscribe!
    Video Chapters:
    0:00 Intro & Example
    0:40 What are Module Scripts?
    2:27 Class Form
    5:08 Data Form
    5:44 Utility Form
    6:45 Functional Form
    8:00 Using These Forms
    11:20 Real Games, Real Examples
    15:05 Outro

КОМЕНТАРІ • 42

  • @rafaelrodriguez777
    @rafaelrodriguez777 4 місяці тому +16

    Every time this guy uploads a new video, my scripting skills go up like crazy.

  • @Andrew90046zero
    @Andrew90046zero 4 місяці тому +20

    One important takeaway from Module Scripts as well is, when you call require with a specific module, the code of the Module Script is only executed *once*, even if multiple scripts call require with that module script. But each time you do call require with that module, it returns the same data each time. So in the case of it returning a table, it will be the same table. So you could even use the module script to share mutatable data between multiple scripts.

    • @jnprge
      @jnprge 4 місяці тому +2

      another important tip: if you use an actor to contain your script, and if you require the modulescript, it WILL be executed again
      this will make another table you don't want, and is the main reason why i never use actors with modules

    • @Kitsune_Dev
      @Kitsune_Dev 3 місяці тому +1

      it’s called Caching (Cache)

    • @Kitsune_Dev
      @Kitsune_Dev 3 місяці тому +1

      @@jnprgeyou can’t anyway, it will error when requiring in parallel

    • @jnprge
      @jnprge 3 місяці тому +1

      @@Kitsune_Dev you can outside of parallel tho, that is how i found the issue

  • @74L
    @74L 4 місяці тому +3

    The real examples were very helpful! Thank you and please make more of this type of content!

  • @He_ze
    @He_ze 3 місяці тому +1

    An extremely informative video, thanks for making this!

  • @YLVrbx
    @YLVrbx 4 місяці тому +2

    I love watching your videos, I really want to get better at making clean and good games, thanks to you im learning new stuff from you. Please if you can, Keep up uploading videos like this 🙏

  • @cemantical
    @cemantical 4 місяці тому +1

    No wayyy this is the exact video I needed 😭 tysm

  • @itso6778
    @itso6778 4 місяці тому +3

    This channel is definately the step from going to intermediate to advanced keep up the stuff man

  • @partyhardwithme
    @partyhardwithme 4 місяці тому

    Great video, kudos for the real examples, because i've seen a lot of those "hello world" tutorials with module scripts and i understood them but still haf a hard time figuring how to use them in my real projects. This video is awesome!

  • @zeaveer5399
    @zeaveer5399 4 місяці тому

    Very useful knowledge. Thanks for this video !

  • @juniorwizard-ek9zl
    @juniorwizard-ek9zl Місяць тому

    This was so helpful! I couldn't find a video with a simple explanation that shows you how to use module scripts properly, tysm again!

  • @TheManThatIsRay
    @TheManThatIsRay 4 місяці тому

    I greatly appreciate your teaching style and the real world examples.

  • @koainanis5840
    @koainanis5840 4 місяці тому

    well done and nice explained.
    thank you and keep up the good work.

  • @dane1up
    @dane1up 4 місяці тому +3

    incredibly useful video (as always)!

    • @74L
      @74L 4 місяці тому

      Agreed

  • @customgunz00
    @customgunz00 4 місяці тому +1

    idec about this video you seem like youre a saint brother, good stuff

  • @sr32qawrq
    @sr32qawrq 2 місяці тому

    This is awesome bro

  • @Ethan-vx3ws
    @Ethan-vx3ws 3 місяці тому +1

    You don't understand how much this helped me. God bless!

  • @cupofdespair7727
    @cupofdespair7727 4 місяці тому

    needed this video omg

  • @KageNoDragon
    @KageNoDragon Місяць тому

    Bro I love it it's like a father teaching us :0

  • @mist5023
    @mist5023 3 місяці тому

    Great video

  • @FoxDevWasTaken
    @FoxDevWasTaken 4 місяці тому

    Thank you so much :D

  • @jso1
    @jso1 4 місяці тому

    love this

  • @keyblademaster8263
    @keyblademaster8263 4 місяці тому +1

    These videos will help you make the transition from intermediate to advanced. Play these videos a multiple times & your scripting habits will improve.
    Dont give up now the fact that you are here is proof enough that you came a long way from where you started.

  • @ProxyGameDev
    @ProxyGameDev 3 місяці тому

    Damn, you're good

  • @codexed-i
    @codexed-i 4 місяці тому

    I like how in Rust (my fav pr language) code is just in the src folder, so it is easy to organize, but on Roblox... i had to write a library to load scripts, but at least it is easier to scale/organize.

  • @DropperMaster
    @DropperMaster 4 місяці тому

    The previous video is very good. I signed up

    • @DropperMaster
      @DropperMaster 4 місяці тому

      I would like to see a detailed video on how to clean up the garbage in the code. How to clean the OOP component after removal. I know about the "Debris" library. And I know roughly what "Destroy" should look like in OOP. However, many people are interested in this. And maybe it would be informative.

  • @vexillumination6074
    @vexillumination6074 4 місяці тому

    Module scripts are amazing and save so much time

  • @luigifernando_
    @luigifernando_ 4 місяці тому +1

    actual goat 🐐

    • @wav8518
      @wav8518 2 місяці тому

      vica chile

  • @Kitsune_Dev
    @Kitsune_Dev 4 місяці тому

    can you talk about Test driven development and TestEz?

  • @Sasuke46525
    @Sasuke46525 4 місяці тому +1

    U should definitly make a game videos, but not like simulator games you know also i like ur videos ur life saver and keep making videos, while u are making videos make it with perfect orginazed

  • @Tekleed
    @Tekleed 4 місяці тому

    Peak

  • @WillProductionsTV
    @WillProductionsTV 4 місяці тому

    FIRST

  • @liam2795
    @liam2795 2 місяці тому

    How can I access the data that I put inside of Mosul script and place it in the workspace and that was done by sever script but how can I access that data from local script

  • @Beehopmew
    @Beehopmew 3 місяці тому

    mate do you do private leasons ?

  • @SilverSuperGamer
    @SilverSuperGamer 2 місяці тому +2

    There is no single right way btw