First of all, I have filtering enabled, and everything was working fine till I tried what I'm doing below:
I have some functions I was using within both my server scripts and local scripts. I wanted to consolidate them all to a modulescript.
I thought I could do this within a local script:
local UT = require(game.ReplicatedStorage.UtilityCode)
local model_tool = part.Parent.Parent:Clone()
local original_name = model_tool.Name
model_tool.Name = model_tool.Name.."-"..player.Name
model_tool.Parent = game.ReplicatedStorage
game.ReplicatedStorage:WaitForChild(model_tool.Name)
model_tool.Name = original_name
local tool_in_model = UT:get_tool_from_object(model_tool)
local GAME_CONFIG = tool_in_model.Game_Config:Clone()
but when I try to do a getChildren on the model_tool object passed into my modulescript, there is an error message saying that the argument passed in is nil, even though I check it for a nil value before it gets that far.
I'm using RemoteFunctions and RemoteEvents, otherwise, but just wanted to try getting around some of that with 3 simple functions I use that I can otherwise make into RemoteFunctions for both Server and Client... Maybe those remote functions could just call my modulescript at that point.
Any thoughts?
-Jason

2 comments
ModuleScripts are only started on the server once, and once for each client. Seperately. Are you aware of this fact?
Yes I'm using it accordingly