Advanced scripting topics

Hi. What are some difficult or advanced scripting concepts that you didn’t understand at first and how did you learn about them? I am interested in this because I’m going to learn advanced scripting and I want to be prepared for the topics so that I too can try your ways of understanding the difficult topics.
Also, can you explain what the advanced topics mean? E.g. Datastores are basically something that contains data(if I’m not wrong).
Thank you so much in advance.
If this is the wrong topic and should be put in #discussion, I will immediately take down this topic.

PLEASE READ: To all admins or the team that takes down posts, I can’t take down my topic, when I try to delete the topic, it says that there was an error and I need to contact the site’s administrator. Please take down this topic but don’t flag me. Thank you.

3 Likes

It might be a good idea to define “advanced” because in this case, “advanced” is relative.

1 Like

Well, I guess I I just want to hear what is advanced or difficult for everyone.

This post would belong better in Discussion, but since you (or me really) cant post there, I’ll give some complex scripting topics (in the context of Lua)

  • Object Oriented Programming
  • Custom Function Environments (fenv) and loadstring
  • Metatables

(on the topic of moving this to discussion might be a good idea to send the Post Approval team a DM with this thread)

3 Likes

How did you learn about them? Did you watch some tutorials?

In my experience, the best way to learn a topic is to put what you’ve witnessed into practice.

It’s good and all watching a YouTube video on how to use OOP, but unless you try to make your own objects, the past 5+ minutes have been practically pointless

2 Likes

What about Coroutines
Coroutines are basically Lua’s way of “Multitasking” But its not really
When a coroutines yields it returns back to the ancestor code so the yield can be handled there. and then the ancestor can resume the coroutine at the yield point.

How i learned it?

  • Google.

more info here

1 Like

For me the hardest part of scripting is CFrames :stuck_out_tongue:
i’m relatively good at metatables and coroutines
i understand fenvs although i never need to use them

3 Likes