I’m trying to make an import module where if i change a name of an object used in multiple script I don’t have to change all of them and only have to change in the module script but the module script cant find BindableEvent in ServerStorage when its there in it (the module is in ReplicatedStorage)
The code:
local RS = game.ReplicatedStorage
local SS = game.ServerStorage
local GameModule = RS.GameModule
local GameMemory = RS.GameMemory
local BindableEvent = SS.BindableEvent
local VariableFolder = SS.Variable
local ScriptModule = script.Parent
Error:
BindableEvent is not a valid member of ServerStorage "ServerStorage"
local RS = game.ReplicatedStorage
local SS = game.ServerStorage
local GameModule = RS.GameModule
local GameMemory = RS.GameMemory
local BindableEvent = SS:WaitForChild("BindableEvent")
local VariableFolder = SS.Variable
local ScriptModule = script.Parent
put ModuleScript into ServerScriptService and script