Module script question

If I have a local variable in a module script located in replicated storage such as below:

local module ={}
local variable = "a"
module.changevariable= function(newletter)
    variable = newletter
end
return module

And I require the module script from a client’s local script, would the changes they make to the variable be reflected on other clients who require the script?

No, the changes would only happen for the requirer (ie. if the server requires it, changes would only happen to the client; if a client requires it, changes would only happen on said client)

2 Likes