You might have picked up one of these terrible coding habits when learning Roblox Lua. Let’s address that, shall we?
Listen… we gotta talk. You’ve got some really bad habits when it comes to scripting on Roblox. You clearly grew a lot since your days as a novice. You’ve been around the block enough times to know when it’s time to move past old habits and grow as a developer. Now’s the time to start improving your Roblox code.
OK, maybe not all of that first paragraph is completely true, but that bit about growing as a developer might interest you a whole ton. In this post, let’s talk about what you can do to clean up your coding habits.
A word of caution: this “advice” (if we’re calling it that) isn’t for the absolute novice. If you’re really-really new, just focus on making things work first and foremost. That’s more important. For the rest of you, let’s get into it!
Let’s learn about Binders, a useful pattern that links CollectionService and OOP.
In this post, I’m featuring the Binder pattern, its uses, and reasons you should start using them in your Roblox projects.
A binder connects a CollectionService tag on Instance with an object in Lua code. When a tag is applied to an Instance, an object is constructed from a class with this Instance. During its lifetime, the object might read from various attributes on the instance to modify how it behaves. Finally, if the tag or entire Instance is removed, the object is cleaned up or destroyed accordingly.
For the purposes of this article, I’ll be using this implementation (I recommend you keep this open while reading).
Yet another batch of improvements to the game interfaces, this time focusing some of the oldest in the game! Additionally, there’s updates to melee weapons and gamemaker selection to make things more fair for all.
The good times keep rolling with lucky batch number three of the UI Update. Continuing from Part 2, this update brings changes to some of the game’s oldest and most untouched interfaces.
But as usual for these, it’s never just interfaces updates! Melee weapons have gotten faster, fairer and more fun. Selection of gamemakers is improved, too.
A much needed update to the Hunger Games is here! I’m kicking off my 2021 roadmap plans for the game with the part 1 of the UI Update. It’s a whole boatload of changes, with more on the way. Spectating is upgraded, disasters are working again, there’s new changes to prevent abuse, and an in-game news window. Read up, and good luck in the Arena, tributes!