Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is Module Script Communication Possible?

Currently I've been working on a Tool saving system. That aside I understand that you can index function in a module script, but would there be anyway to communicate from the module script to tell a localscript/script to do something

Script(Signals ModScript)-->ModuleScript(Proceeds the function)--(Somehow Signals another script/localscript)-->Localscript/script(Runs desired code)

11 comments

0

You can't index a function

0

yes you can

0

yes you can

0

though you'd need to use the right method

0

if the module script was running on the server, then you'd use :FireClient() or :FireAllClients(), else on the client :FireServer()

0

So essentially using the FE-safe version of bindable events? but what if i wanted to communicate between the server?

0

You cannot index a function, try this: print(print[1])

1

Incapaz, if you don't understand what they're asking, don't try to answer.

0

dumb

0

finally, someone in the right headspace

0

Most people dislike Incapaz actually. He tends to be very condesending and unwilling to actually help people.

1 answer

✓ Accepted answer

Yea, you can do this BindableEvents and RemoteEvents. You would use a remote when communicating server to client or visa versa and you would use bindables when you're communicating between server scripts or when you're communicating between local scripts.

This discussion is preserved as it was. New answers, comments, and votes are closed.