SERVER
function getQuestsData(player, quest)
print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
local questModule = game.ReplicatedStorage.Quests:FindFirstChild(quest)
if questModule then
questModule = require(questModule)
local data = {
QuestName = questModule.QuestName;
QuestDescription = questModule.QuestDescription;
Objective = questModule.Objective;
ProgressType = questModule.ProgressType;
MaxProgress = questModule.MaxProgres;
Marker = questModule.Marker
}
return data
end
end
game.ReplicatedStorage.Functions.GetQuestInfo.OnServerInvoke = getQuestsData
CLIENT
print(quest)
local questData = game.ReplicatedStorage.Functions.GetQuestInfo:InvokeServer(quest)
print(questData)
no errors
client prints the quest and nothing else
nothing is printed on server
it was in fact something to do with the requiring modules
it works now that i moved it into a different script
i dont see why that would cause it to yield because i am not running any functions from the modules