Hey folks! Here is a new video tutorial for the first time in forever.
In this video I explain how to link a gamepass purchase to a tool that is placed in the player’s backpack when they spawn. This method to make gamepasses give tools is what I would consider the “easy in the long run way” because of how scalable it is! Hopefully this helps also dip your feet into object-oriented programming as well.
If you want to just follow along in the video with the example place used, you can check out the source code here: Gamepass Tutorial - Roblox
Hope this helps! Let me know if you have any questions.
I already knew about OOP for a long time, but I’m glad that OOP is used for every purpose possible in roblox.
I got shocked when you made a video tutorial. I would follow it to get the OOP Module’s code but not the tools as I am already good enough at that, I will make more OOP modules in the future
Why would OOP be even used for this purpose? It feels counterintuitive when I could just have a data table which is also easily scalable… you shouldn’t necessarily be using OOP for everything possible.
OOP makes sense in this case since the logic surrounds many instances of one umbrella functionality. It reduces the amount of code needed and is more flexible. Using it as much as possible isn’t a good thing, but using it when appropriate is.