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
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_
Жыл бұрын
sus
@YourNumberOneRated1997Salesman
Жыл бұрын
Impostor what????
@kthulu2
Жыл бұрын
^^
@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
Жыл бұрын
@@YourNumberOneRated1997Salesman Feeling like you call yourself a programmer when you aren't really one
I've been developing Roblox games for 4 years now, this is the big problem for my game development, thank you so much!
Thanks, I learned new ideas. This will help me for my next project. Stay safe bro.
Thanks, these tutorials have really helped me understand how to implement my Lua knowledge into actual game design
@BRicey
Жыл бұрын
I'm glad I could help!
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
7 ай бұрын
I appreciate that!
definitely some underrated scripting tutorials
Extremely helpful tutorial, thank you!
🙏 you are great. thank you for making this. i really needed it.
Really cool explanation to this.
awesome tutorial, good explanation of basic OOP in roblox
You're probably the most underrated youtuber I have ever stumbled upon ever
@BRicey
6 ай бұрын
Lol thanks
You are so cool. Thanks for the very helpful tips.
This was very good
thanks, helped a lot with OOP, will try to implement it in my game
@BRicey
Жыл бұрын
Glad it helped!
IT’S ALIIVVVEEEEE!!!!
amazing video
You are hands down THE BEST Lua tutorialist on KZread, you are Lua version of Corey Schafer
thank you man
Good advice
wow, I can't believe I didn't know about this
Love the vids keep helping us young devs
@blizzard4551
Жыл бұрын
Go play more apex legends
@Chickengbs
Жыл бұрын
@@blizzard4551 go watch anime
@nezzled
Жыл бұрын
@@blizzard4551 bros salty because it's above his level of comprehension 🗿
@blizzard4551
Жыл бұрын
@@nezzled you guys got it all wrong he has the same name with a famous apex legends content youtuber lmao
@blizzard4551
Жыл бұрын
@@nezzled and he hasn't uploaded apex in a while 💀💀💀
this helped my spaghetti code, thanks
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...
I know it's my birthday when b ricey posts
@SortaIrish
Жыл бұрын
I don’t think those correlate not gonna lie
@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
Жыл бұрын
Well with my upload schedule it might as well be...
@Marcus001
Жыл бұрын
@@refusalstudios This This This This This This This
thanks now i can code like gnome code
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.
i think im getting very close to taking up a commission or part-time job that includes multiple scripters
can you make a tutorial on how to make a unique tycoon game like restaurant tycoon?
When will you show how to make animation in vector3?
Is there a possiblity that you update ur Tycoon Series some stuff you did there doest work or just Outdated just cerious
I have a quick question, How do i open the output cause for me it does not show it for some reason
Is all of this just for organization and ease of access purposes or does it have performance benefit?
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
Жыл бұрын
it means what it says.. while true "do" which means DO it ! lol. like for _,v in ipairs(workspace:GetChildren()) do ... end
@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.
Hey could you make a video on state machines and how to implement one into roblox studio
@BRicey
Жыл бұрын
Good idea!
👀
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
5:01 yeah make 101 places like me until you get an idea, Btw i still got no idea ; - ;
How does this happen.. I literally just had my first college lecture on OOP this morning! xD
@BRicey
Жыл бұрын
Nice!
@datasussy7878
Жыл бұрын
very cool!
"We don't talk about java" also him:"I have a lot of experience in Java"
@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
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
Жыл бұрын
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__
Жыл бұрын
@@BRicey Alright. Thanks!
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
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
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…
why is your icons on roblox studio different than mines
Yooo
7:00 it launched by the way
@BRicey
Жыл бұрын
Omg your right its a miracle... eh whatever the metaphor still stands
Do you have any tips to improve my logic and scripting skills?
@BRicey
Жыл бұрын
Practice, but honestly more importantly, look at other's code, browse good github repos, and just overall learn from the best.
@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
Жыл бұрын
I guess the real question is how I use math in game development
@notimportant1542
Жыл бұрын
@@grgroyale eyy same the math is where I struggle at the moment
How did you shrink the size of the explorer and toolbox?
@FlawyClips
9 күн бұрын
You can easily do that by clicking and dragging on the edge of the tab
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
Жыл бұрын
press F when u have the part selected
@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
hello bricey, I used oop for my gun client is that good?
@BRicey
Жыл бұрын
Yea sure if you needed it
how do you have custom editor ui??
@BRicey
Жыл бұрын
They just recently updated all of the icons for the editor
@jeremiahholm4982
Жыл бұрын
@@BRicey really?! Mine didn't update
how old are you ?
"LUAU"??? DAWG ITS LUA-U
@wav8518
5 ай бұрын
Wtf???
Can someone get banned for leaving commentaries with swear words on a script?
@IncryptDubstep
Жыл бұрын
This was something roblox talked about implementing, however, its unsure if they ultimately will.
@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
9 күн бұрын
They might do it now that they are monitoring developers' code.
Lawless 🤣🤣😂😂
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.
I don't use Knit so uhh.
@steroid2884
Жыл бұрын
What do you mean Knit isn’t even used in the video 💀
@SPOOKEXE
Жыл бұрын
@@steroid2884 at 18:15, he does bring it up
Funny how i didnt understand shit
skibiditoilet.__index = skibiditoilet
@FlawyClips
9 күн бұрын
beyond brainrot