If I call a function in a module script thats located in replicated storage, and I call the function in a local script, will this be done on the server or the client? If the client, how can I fix it?
I Don’t know. PUT this in scripting support
It will be done on the client.
To fix it you can…call it from a server script?
Local script is made for executing code in the client, most likely will be client sided.
To fix it, you could just simply use a remote event or use a server script.
@anthropomorphic_dev and @exp_lol123, so your saying that the module’s function is not ran on the module and then returned to the calling script, but rather ran on the calling script and is just stored on the module script?
Yes precisely
Module scripts are just containers for code.
1 Like
Yes, the module script cannot run on it’s own and needs a calling script. The function will be run on the calling script and will just be stored on the module script.
1 Like