Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i use returning when developing a game? [closed]

Asked by 6 years ago

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 :)

0
There are many examples of ways to use return. Asking how something so small can be used to create a game is too broad and opinion based. OldPalHappy 1477 — 6y

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?

1 answer

Log in to vote
0
Answered by 6 years ago

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!

Ad