-- Module in ServerStorage
NPCHandler.GenerateName = function(FirstTable,LastTable,RandomnessRate,WaitBool)
print('work')
local Name
for i = 1,RandomnessRate do
Name = ""
Name = Name..FirstTable[math.random(1,#FirstTable)].."_"..LastTable[math.random(1,#LastTable)]
if WaitBool == true then
wait()
end
end
return Name
end
and
-- Server Script in ServerScriptService
wait(5)
local Handler = require(game.ServerStorage.Modules.NPCs)
local ChosenFirst = Handler.FirstNames
local ChosenLast = Handler.LastNames
local Name = Handler.GenerateName(ChosenFirst,ChosenLast,3,false)
print(Name)
This script was working yesterday, I added a few functions to the module but that's about it, why would this break all of the sudden? None of my prints actually print to the output.
