How to Organize & Style your Code in Roblox Development (and when to use OOP)

Ойындар

Every open up a project and then just sit there, trying to figure out where to start? Roblox Studio is very powerful, but with great power comes great responsibility. This video tries to show some of my tips and tricks on how to set up your Roblox codebase, talking about where to put scripts, when to use Object Oriented programming, and more! Hope you enjoy!
You Ain't gonna need it: en.wikipedia.org/wiki/You_are...
Object Oriented Programming Roblox: bit.ly/2XQfWcG
Color Chaos: The next generation (example game): www.roblox.com/games/46499926...
Starship's Fail Fast mentality: arstechnica.com/science/2020/...
Knit: sleitnick.github.io/Knit/
Matter ECS (Entity Component System): eryn.io/matter/
OOP is bad (kinda extreme but great video): • Object-Oriented Progra...
Socials:
- Discord Server: / discord
- Twitter: / b_ricey763
Popular Playlists:
- Roblox Scripting: bit.ly/35Nz7Is
- Roblox Showcases: bit.ly/2LVIPS2
- Object Oriented Programming Roblox: bit.ly/2XQfWcG

Пікірлер: 112

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

    I struggle with a lot of impostor syndrome when I code and the topics you talked about at the end really gave me a boost of confidence, you're awesome man ty

  • @ikqqslate_

    @ikqqslate_

    Жыл бұрын

    sus

  • @YourNumberOneRated1997Salesman

    @YourNumberOneRated1997Salesman

    Жыл бұрын

    Impostor what????

  • @kthulu2

    @kthulu2

    Жыл бұрын

    ^^

  • @holywater2977

    @holywater2977

    Жыл бұрын

    @@ikqqslate_ Impostor syndrome, also known as impostor phenomenon or impostorism, is a psychological occurrence in which an individual doubts their skills, talents, or accomplishments and has a persistent internalized fear of being exposed as a fraud.[1] Despite external evidence of their competence, those experiencing this phenomenon do not believe they deserve their success or luck. They may incorrectly attribute it to the Matthew effect, or they may think that they are deceiving others because they feel as if they are not as intelligent as they outwardly portray themselves to be.[2] Impostor syndrome can stem from and result in strained personal relationships and can hinder individuals from achieving their full potential in their fields of interest.[3] When impostor syndrome was first conceptualized, it was viewed as a phenomenon that was common among high-achieving women. Further research has shown that it affects both men and women, in the collective sense that the proportion affected are more or less equally distributed among the genders.[1][4] Individuals with impostor syndrome often have corresponding mental health issues, which may be treated with psychological interventions, though the phenomenon is not a formal mental disorder.[5]

  • @vermilion4215

    @vermilion4215

    Жыл бұрын

    @@YourNumberOneRated1997Salesman Feeling like you call yourself a programmer when you aren't really one

  • @user-zx2zt5pu5f
    @user-zx2zt5pu5f Жыл бұрын

    I've been developing Roblox games for 4 years now, this is the big problem for my game development, thank you so much!

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

    Thanks, I learned new ideas. This will help me for my next project. Stay safe bro.

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

    Thanks, these tutorials have really helped me understand how to implement my Lua knowledge into actual game design

  • @BRicey

    @BRicey

    Жыл бұрын

    I'm glad I could help!

  • @imthebestmayne122
    @imthebestmayne1227 ай бұрын

    Your channel really gives me the motivation I need. I think I have commented this once before, but you actually have the best tutorials for LUAU programming on KZread.

  • @BRicey

    @BRicey

    7 ай бұрын

    I appreciate that!

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

    definitely some underrated scripting tutorials

  • @cluelesscactus2098
    @cluelesscactus20988 ай бұрын

    Extremely helpful tutorial, thank you!

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

    🙏 you are great. thank you for making this. i really needed it.

  • @LeapInno
    @LeapInno7 ай бұрын

    Really cool explanation to this.

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

    awesome tutorial, good explanation of basic OOP in roblox

  • @KiriNini
    @KiriNini6 ай бұрын

    You're probably the most underrated youtuber I have ever stumbled upon ever

  • @BRicey

    @BRicey

    6 ай бұрын

    Lol thanks

  • @AmRobloxDev
    @AmRobloxDev11 ай бұрын

    You are so cool. Thanks for the very helpful tips.

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

    This was very good

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

    thanks, helped a lot with OOP, will try to implement it in my game

  • @BRicey

    @BRicey

    Жыл бұрын

    Glad it helped!

  • @Dark-zt2ok
    @Dark-zt2ok Жыл бұрын

    IT’S ALIIVVVEEEEE!!!!

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

    amazing video

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

    You are hands down THE BEST Lua tutorialist on KZread, you are Lua version of Corey Schafer

  • @Rkyiel
    @RkyielАй бұрын

    thank you man

  • @MrLubbs
    @MrLubbs5 ай бұрын

    Good advice

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

    wow, I can't believe I didn't know about this

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

    Love the vids keep helping us young devs

  • @blizzard4551

    @blizzard4551

    Жыл бұрын

    Go play more apex legends

  • @Chickengbs

    @Chickengbs

    Жыл бұрын

    @@blizzard4551 go watch anime

  • @nezzled

    @nezzled

    Жыл бұрын

    ​@@blizzard4551 bros salty because it's above his level of comprehension 🗿

  • @blizzard4551

    @blizzard4551

    Жыл бұрын

    @@nezzled you guys got it all wrong he has the same name with a famous apex legends content youtuber lmao

  • @blizzard4551

    @blizzard4551

    Жыл бұрын

    @@nezzled and he hasn't uploaded apex in a while 💀💀💀

  • @justaguy4575
    @justaguy457516 күн бұрын

    this helped my spaghetti code, thanks

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

    fax, people do really advanced and complicated things but like at the end of the day thats nice but it makes it over complicated and at the end of the day the game just needs to be released...

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

    I know it's my birthday when b ricey posts

  • @SortaIrish

    @SortaIrish

    Жыл бұрын

    I don’t think those correlate not gonna lie

  • @refusalstudios

    @refusalstudios

    Жыл бұрын

    @@SortaIrish they sure do this guy is literally ahead of the technology while all these other youtubers and explaining how to make a kill brick

  • @BRicey

    @BRicey

    Жыл бұрын

    Well with my upload schedule it might as well be...

  • @Marcus001

    @Marcus001

    Жыл бұрын

    @@refusalstudios This This This This This This This

  • @theman7318
    @theman73184 ай бұрын

    thanks now i can code like gnome code

  • @treker41ify
    @treker41ify7 ай бұрын

    What do you mean at 9:59 that java forces you to keep classes to their own scripts(I assume you mean methods)? Do you mean like every method we want for the object we have to keep in the same class? Cuz in java we could work around that by just creating a class with static methods to call at any time and use these methods for the other classes if we wish to do so. An example would be the Math class in java or creating for example a custom sorter class with static methods that sorts collections with user-defined methods.

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

    i think im getting very close to taking up a commission or part-time job that includes multiple scripters

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

    can you make a tutorial on how to make a unique tycoon game like restaurant tycoon?

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

    When will you show how to make animation in vector3?

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

    Is there a possiblity that you update ur Tycoon Series some stuff you did there doest work or just Outdated just cerious

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

    I have a quick question, How do i open the output cause for me it does not show it for some reason

  • @endproGM
    @endproGM7 ай бұрын

    Is all of this just for organization and ease of access purposes or does it have performance benefit?

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

    Hey, B Ricey, I mainly came here to ask you if you could make a tutorial or let us know how to use the keyword "do" by itself. I've seen it being used a couple of times before and was wondering what purpose it really has.

  • @ImUkoo

    @ImUkoo

    Жыл бұрын

    it means what it says.. while true "do" which means DO it ! lol. like for _,v in ipairs(workspace:GetChildren()) do ... end

  • @artex_112

    @artex_112

    10 ай бұрын

    It literally does something and then ends nothing more, it can be used to separate scopes so you don't accidentally reuse them when they are not needed.

  • @piky-rt4vn
    @piky-rt4vn Жыл бұрын

    Hey could you make a video on state machines and how to implement one into roblox studio

  • @BRicey

    @BRicey

    Жыл бұрын

    Good idea!

  • @resh-1
    @resh-1 Жыл бұрын

    👀

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

    yo can you make a tutorial on the tycoon series where you can reset your data or as in restart your tycoon progress i really need that so far also nice video

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

    5:01 yeah make 101 places like me until you get an idea, Btw i still got no idea ; - ;

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

    How does this happen.. I literally just had my first college lecture on OOP this morning! xD

  • @BRicey

    @BRicey

    Жыл бұрын

    Nice!

  • @datasussy7878

    @datasussy7878

    Жыл бұрын

    very cool!

  • @googoogaagaayt
    @googoogaagaayt4 ай бұрын

    "We don't talk about java" also him:"I have a lot of experience in Java"

  • @BRicey

    @BRicey

    3 ай бұрын

    Thus is the greatest paradox of life: when school and your robotics team force you to learn a language u hate, you must master it or be mastered

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

    Difference between local, and global functions? I've noticed that you used global functions in modules, and local functions in regular scripts. Is there a reason why?

  • @BRicey

    @BRicey

    Жыл бұрын

    Just a matter of convention... only use global functions when they are within a table (like a module or a class), use local functions only used in that script

  • @s_v__

    @s_v__

    Жыл бұрын

    @@BRicey Alright. Thanks!

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

    Could you please make a video explaining how to make buttons that will only appear after a rebirth? (also buttons that appear after multiple rebirths please). It would help me a ton! :D

  • @-------_________----------

    @-------_________----------

    Жыл бұрын

    With a variable

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

    How can I solve my problem with OOP. I created my object (also creating an Instance), return that object (maybe call it metatable), and then store that object inside "Main" table. And when the Instance attached to that object (metatable) for some reason got destroyed, the object (metatable) for that doesn't get removed from "Main" table. I have tried checking if Instance is nill or not when I tried to do something with the object (metatable), but that didn't work. Do not ask me why the Instance can be destroyed not by the assigned object (metatable).

  • @XaneMyers

    @XaneMyers

    7 ай бұрын

    This reminds me of one of my OOP classes. I made a UI button class which replaces a placeholder instance with a set of styled instances (background, label, transparent layer to brighten the button when it's highlighted, etc.), then it destroys the original button. The button itself works and responds to clicks, but for some reason, it can't detect when the new button instances get destroyed (using the Destroying event). I tried to program it so it would destroy the button object if that happened, but that doesn't happen. My hackish fix was to add an array to my Window object class, which it iterates through when it closes, forcing any buttons in it to destroy themselves. I don't know why the Destroying event ignores what it's supposed to react to like this, but I have a feeling this issue will affect me again with later objects…

  • @BSSMacroless
    @BSSMacroless10 ай бұрын

    why is your icons on roblox studio different than mines

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

    Yooo

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

    7:00 it launched by the way

  • @BRicey

    @BRicey

    Жыл бұрын

    Omg your right its a miracle... eh whatever the metaphor still stands

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

    Do you have any tips to improve my logic and scripting skills?

  • @BRicey

    @BRicey

    Жыл бұрын

    Practice, but honestly more importantly, look at other's code, browse good github repos, and just overall learn from the best.

  • @grgroyale

    @grgroyale

    Жыл бұрын

    @@BRicey I am looking at other's scripts I am having hard time when it comes to math. I don't know if you know about those fighting games that have rocks after an impact, but basically I searched up on yt how to make one of these effects and they used math but not in the way I learnt at school. I can't seem to understand the math behind effects and other stuff. Another example about lighting effect using cylinder, I just can't understand what they are doing and that is really demotivating.

  • @grgroyale

    @grgroyale

    Жыл бұрын

    I guess the real question is how I use math in game development

  • @notimportant1542

    @notimportant1542

    Жыл бұрын

    @@grgroyale eyy same the math is where I struggle at the moment

  • @sixturnsALT
    @sixturnsALT5 ай бұрын

    How did you shrink the size of the explorer and toolbox?

  • @FlawyClips

    @FlawyClips

    9 күн бұрын

    You can easily do that by clicking and dragging on the edge of the tab

  • @AdamAdam-kx4fs
    @AdamAdam-kx4fs Жыл бұрын

    Quick Question: Can you explain to me how you can teleport your camera to a part but also freeze it when it has been teleportded, this happens when you touch a part.

  • @maltisme

    @maltisme

    Жыл бұрын

    press F when u have the part selected

  • @artex_112

    @artex_112

    10 ай бұрын

    Do you mean like in-game? Use a local script inside the script change players camera type to Scriptable then take the parts CFrame value and set it as Cameras CFrame. When you dont need it anymore just reset the camera type

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

    hello bricey, I used oop for my gun client is that good?

  • @BRicey

    @BRicey

    Жыл бұрын

    Yea sure if you needed it

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

    how do you have custom editor ui??

  • @BRicey

    @BRicey

    Жыл бұрын

    They just recently updated all of the icons for the editor

  • @jeremiahholm4982

    @jeremiahholm4982

    Жыл бұрын

    @@BRicey really?! Mine didn't update

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

    how old are you ?

  • @insaneicle
    @insaneicle8 ай бұрын

    "LUAU"??? DAWG ITS LUA-U

  • @wav8518

    @wav8518

    5 ай бұрын

    Wtf???

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

    Can someone get banned for leaving commentaries with swear words on a script?

  • @IncryptDubstep

    @IncryptDubstep

    Жыл бұрын

    This was something roblox talked about implementing, however, its unsure if they ultimately will.

  • @ICM9

    @ICM9

    5 ай бұрын

    I would lean toward not doing so just to be safe. Either way, I’m not sure why you’d ever *need* to leave explicit language within your code anyways lol. Good professional practice anyways.

  • @treyg5265

    @treyg5265

    9 күн бұрын

    They might do it now that they are monitoring developers' code.

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

    Lawless 🤣🤣😂😂

  • @eddiehazard3340
    @eddiehazard3340Ай бұрын

    I really like your videos, but had to quit on this one.. too much spit in your mic technique.. sorry bro.. you gotta work on mic technique.

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

    I don't use Knit so uhh.

  • @steroid2884

    @steroid2884

    Жыл бұрын

    What do you mean Knit isn’t even used in the video 💀

  • @SPOOKEXE

    @SPOOKEXE

    Жыл бұрын

    @@steroid2884 at 18:15, he does bring it up

  • @windowswastaken
    @windowswastaken8 ай бұрын

    Funny how i didnt understand shit

  • @not_eagleye
    @not_eagleye2 ай бұрын

    skibiditoilet.__index = skibiditoilet

  • @FlawyClips

    @FlawyClips

    9 күн бұрын

    beyond brainrot

Келесі