Bindable function not getting received at all?

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")

Full: local CollectionService = game:GetService("CollectionService")local Trees = Co - Pastebin.com

Research Handler:

game.ReplicatedStorage.RemoteEvents.Research.CheckPlayerResearchServer.OnInvoke = function(Player,Research)
	if PlayerResearches[Player][Research] == true then
		return true
	else
		return false
	end
end

Full: local DataStoreService = game:GetService("DataStoreService")local DataStore - Pastebin.com

Sorry I couldn’t cut the scripts down. I just really don’t know what could be causing the problem.

It was working before I integrated the HandleTree() function. Does anyone know what I did wrong???

Did you add a print statement to check?

Yea, It doesn’t get past the Invoke

Are you sure you are using the same script type?
Local / server

Yes. Both the scripts are server

Are you sure that the OnInvoke is setup early enough the receive the Invoke?

Yes I am sure. There is no wait or anything before OnInvoke

1 Like

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

Yes, except the OnInvoke part doesn’t even recognise the Invoke

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")

And the OnInvoke doesn’t recieve at all

1 Like

So i decided to read the whole script (second)
You need to have the PlayerAdded before the OnInvoke.

Nope, apparently I had to publish the game -_-

1 Like