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

What are some uses when returning functions?

Asked by
Pojoto 329 Moderation Voter
5 years ago

I'm talking about this... return function()

I've seen it used in some scripts on RobloxDev tutorial websites, and they don't really explain it. I'd be happy if anyone could explain it to me and some practical uses for it.

(And yes, I know how returns work in functions)

0
Returning a function... I don't see a use for it unless maybe you're making a remote event/function handling script that's like an "all in one". IT can run multiple functions based on the name of the event you're trying to access, essentially it could be 20 remote events in 1 Shawnyg 4330 — 5y
0
Sounds like work for a RemoteFunction but i guess User#19524 175 — 5y

Answer this question