I understand the basics on how to use returns, however, i don't understand how it can be implemented into making a game. Feel free to use examples to make your answer more comprehensible.
Thank you :)
If you want a separate function in a script that you're likely to use many times then return
is quite useful so you will save space.
It is also used for ModuleScripts
since when you use a variable to require
them, you will get a returned value too through return module
.
I couldn't think of a good example but I hope this helps!
Closed as Too Broad by OldPalHappy
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?