#Help with ModuleScripts
1 messages · Page 1 of 1 (latest)
you can require a module script
so like you have a module script in game.ReplicatedStorage named 'Data'
and inside data it is
local module = {
Value = 2
}
and in both your local scripts you can refer to the Value by doing
local Data = require(game.ReplicatedStorage.Data)
print(Data.Value)
all module scripts are just tables
do i have to require everytime when im changing the value?
** You are now Level 1! **
Whats a module script