On server invoke aint invoking

hi on server invoke aint invoking

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

Have you tried adding a wait for child on the bindable function?

game.ReplicatedStorage:WaitForChild("Functions").GetQuestInfo.OnServerInvoke = getQuestsData

yeah it did not work nothing changed

is there any delay on the server script before the code you showed runs? or is that the entire script

there are some requires for module scripts at the top but other than that it is the whole script

can you put a print statement after you require the modules and see if it prints?

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

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.