#Client-Side Module
29 messages · Page 1 of 1 (latest)
What do you mean by "Modules"? What are you trying to do?
Module script
and what does the module contain?
Functions to tween sounds volume (tween service), frames, etc.
oh, i see, i think it can work by adding it in the "playerScripts", or you can also leave it in "ReplicatedStorage" and require it in your scripts
serves for both client and server the modules
if you don't know how to import them is this way:
local myModule = require(--[[ module directory ]]);
Thx, I already know that, I was just wondering which option is better
👍
i dont get module for all clients and for one client
wym?
like wym for all clients and for only one
1 module script for each client, or 1 module script for all clients to use
If i place it in playerscripts, then it will be 1 module for each client (player)
if I place it in replicated storage, then it would be 1 module script for all clients to use
also do you guys know what self is? When I call a function using module.function, it asks for an argument called self, if i use module:function, it doesnt.
is a method you added? if so, I think it's the function's parameter
this is the parameters
this is when I use PlrCustom:MyFuction, it doesn't asks for a "self"
this is when I use PlrCustom.MyFunction
it asks for a self
alr
1 modulescript for all clients
self is your module