Ok I’m not gonna lie It’s really late at night and I have no Idea what the hell is wrong with my script. Basically, it’s supposed to get a return from the research handler but it isn’t at all???
Script:
local HasAdvancedTreeShakingMethods = game.ReplicatedStorage.RemoteEvents.Research.CheckPlayerResearchServer:Invoke(Player,"AdvancedTreeShakingMethods")
game.ReplicatedStorage.RemoteEvents.Research.CheckPlayerResearchServer.OnInvoke = function(Player,Research)
if PlayerResearches[Player][Research] == true then
return true
else
return false
end
end
Bindable functions are supposed to yield the script until the OnInvoke fires, if the script continues after the Invoke (add a print) then this means it fired and the OnInvoke exists
So the script continues? This means it 100% fired and the Invoke existed, are you sure there are no other OnInvokes setup for this same event? Ctrl + shift + f to search on all scripts.
No, The script does not continue as I said at the beginning. It doesn’t go past
local HasAdvancedTreeShakingMethods = game.ReplicatedStorage.RemoteEvents.Research.CheckPlayerResearchServer:Invoke(Player,"AdvancedTreeShakingMethods")