So I’ve been making a healing syringe tool for my SCP game. The thing is that a localscript inside the tool which fires a remote event for the server to actually heal the player, is not responding.
Here’s my script:
https://gyazo.com/21abbc99f1ba9d6521d42e880992c3ee
I added a loaded print so I know when the script is functioning or not. But the script is not responding.
Can anyone help?
If the script itself is not running, make sure it isn’t disabled or isn’t disabled by other scripts.
It’s not disabled and it should run just fine.
Can you post the server code attached to .OnServerEvent?
You said the loaded print is not printing?
Nope, it isn’t printing. Neither is the tool doing anything
Could you screenshot the properties list of your tool and script?
Have you closed the :Connect( in your local script with a )?
Try placing a ) after the last end.
Oh, yeah didn’t notice that, but that shouldn’t affect the print thing right?
It might cause an error, since the actual function never had an ending point.
Although it seems odd that apparently that closing bracket affected the printing, everything works now. Thanks for the help!
Don’t quote me on this, but connections might be connected before the print is executed. I’m not 100% on this, though.
Happy developing!
It could be that the script tries to make sure everything is following the syntax before it starts to be compiled / interpreted. I’m only 20% sure of this