#A question
1 messages · Page 1 of 1 (latest)
https://m.youtube.com/watch?v=foKFpXZYXPk here’s a video by the official Roblox studio account
Learn how module scripts work and when to use them.
For more detailed information, check out the resources below: https://create.roblox.com/docs/reference/engine/classes/ModuleScript
Chapters:
0:00 Intro
0:19 Why do I care
0:42 When do I use it
0:53 Example
yes
Okay thanks
Is there anything especially that I can learn now cuz sometimes I get stuck and Idk what I can do tbh especially after I've learnt the basics so if you recommend smth I would appreciate it
bullshit
@velvet fulcrum I put u on
Full guide on metatables in Lua / Roblox Studio
OOP in roblox
wanna know something new?
from workspace.WaitForChild(workspace, "Baseplate")
to superclasses, that's video is for you!
There will be some interesting stuff that i'm developing Follow on
Twitter: https://twitter.com/the_catargo
Chapters:
0:00 Easy
5:00 Advanced
21:45 Weird
26:30 Ad...
What are you looking to use module scripts for? What is your goal?
I'm sorry?
im joking
but he said oop Im js recommending what I personally thinks the best tutorial
Oh right. I didn't see that; only module scripts.
I don't really have a goal now like I am just learning stuff but I don't know what to learn or what to do to improve
Well, I recommend using the tutorials @haughty geyser and I have sent you to understand and get a grasp of the concept. Then, you can try to apply it.
have you actually made anything with what you’ve learnt so far?
^^^
I've made a shop system and like some small tasks that I ask chatgpt to give me and I try to do it
Kk ty
OOP is a way to use custom data and methods on an object atleast for roblox
if you set the functions of a module and create an object using a .new() function (which creates a meta table), you can use that new 'object' as a sort of custom instance
for example, I made an AI NPC module using OOP that allows you to crate a new NPC object by calling module.new() and then that object has all the properties as a humanoid along with custom data that I added, such as wander() attack() skill1() passive() etc
it allows for less repetitiveness in your code and just overall easier work flow when you intend to make a more intricate system or something you will use multiple times
- oh and using 'self' in the module script refers to the object you create during OOP so self.anything will be accessible later, for example, as NPC.anything when you create a new instance
I was at the gym yh
** You are now Level 1! **
yeah : just means you pass self as the first argument