Tool script not working

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?

1 Like

If the script itself is not running, make sure it isn’t disabled or isn’t disabled by other scripts.

1 Like

It’s not disabled and it should run just fine.

1 Like

Can you post the server code attached to .OnServerEvent?

You said the loaded print is not printing?

1 Like

https://gyazo.com/bc395e9997d9cef2b0f720176e25fcf8

1 Like

Nope, it isn’t printing. Neither is the tool doing anything

1 Like

Could you screenshot the properties list of your tool and script?

1 Like

Local script: https://gyazo.com/69bb23c819e969640e23848069f13edc

Tool: https://gyazo.com/6ebb8acd43f7371ca4b9426291a93555

3 Likes

Have you closed the :Connect( in your local script with a )?
Try placing a ) after the last end.

3 Likes

Oh, yeah didn’t notice that, but that shouldn’t affect the print thing right?

2 Likes

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!

3 Likes

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!

1 Like

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

3 Likes