Summary
In this chapter, we learned there are functions on instances. A few common functions are :GetChildren()
and :FindFirstChild()
. Both of these events get the children of an instance. But there are way more functions. Previously, we also used the :GetService()
function to get services such as Players. We learned that some of these functions are for all instances, while some are instance-specific.
Besides functions, we also learned that there are events. Once again, some events are found in almost every instance, and there are instance-specific events. Events allow us to write our code in a more optimized way. Instead of constantly checking for certain things to happen, we use events. When using events, our code only gets executed if something happens. Therefore, we learned that our code does not run without anything happening.
We have seen that there are not always events for everything we want to listen to. We learned that in those scenarios, we could look for properties...