I fixed my issue, had to have every event for a remote function in a separate script.
So that means I canât use the Remote Function for Button Gui and Keybind in the same local script?
I donât recommend using OnServerInvoke
and FireClient()
in a ModuleScript, instead use a normal Script.
But it worked in the tutorial, even other people who followed the same tutorial said its alright but i dont understand why it doesnât for me anymore now.
Just making sure, did you follow the entire tutorial?
Yes, and after completing the tutorial, it was working pretty good. Iâve been working on this game since 2022, and I never expected an error like this before, not even in my previous games.
I know itâs a mistake in scripting cause there are no errors in the output but I simply donât understand what broke it cause I havenât touched that function since I made their selectable image to spawn the tower, to be honest, when I was remaking this game I didnât have to change the script too much.
The problem is that the Remote Function no longer wants to InvokeServer for some reason, and its weird cause there are no statements when starting to run the CheckSpawn function, I even tried to print when the function started but nothing, the line just doesnât want to InvokeServer.
From my experience, it wonât work.