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

Is Module Script Communication Possible?

Asked by
Mr_Pure 129
5 years ago

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)

0
You can't index a function User#24403 69 — 5y
0
yes you can User#25448 0 — 5y
0
yes you can User#23365 30 — 5y
0
though you'd need to use the right method User#23365 30 — 5y
View all comments (7 more)
0
if the module script was running on the server, then you'd use `:FireClient()` or `:FireAllClients()`, else on the client `:FireServer()` User#23365 30 — 5y
0
So essentially using the FE-safe version of bindable events? but what if i wanted to communicate between the server? Mr_Pure 129 — 5y
0
You cannot index a function, try this: print(print[1]) User#24403 69 — 5y
1
Incapaz, if you don't understand what they're asking, don't try to answer. oreoollie 649 — 5y
0
dumb User#24403 69 — 5y
0
finally, someone in the right headspace User#25448 0 — 5y
0
Most people dislike Incapaz actually. He tends to be very condesending and unwilling to actually help people. oreoollie 649 — 5y

1 answer

Log in to vote
1
Answered by
oreoollie 649 Moderation Voter
5 years ago

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.

Ad

Answer this question