Remote not wanting to detect .OnServerEvent

Client script:
image

Server script:

And the notice does not print.
What is going wrong? I’ve moved my client script all the way across my client yet it still refuses to work.
My server script is also in Workspace, and other parts of it run just fine.

More info: When trying to print the remote instance on both scripts it works all fine:

print(game.ReplicatedStorage.PlayerDied)

I don’t know if “Remote fired, apparently” prints or not, but if it doesn’t you should try changing the print statement above, I don’t know if you can convert an instance to a string, and that line might be giving an error. Another thing you could do is adding a print statement after the OnServerEvent line, to make sure it’s actually listening to it. Everything else seems correct.

Oh, it all prints
Yes you can convert an instance to a string, I’ve done that many times before
And I’ve just tested the last thing and that prints too

Oh alright, could you tell me where each script is put in and whether it prints that it’s listening to the event? Another thing you could maybe do is making sure the script is listening to the event and then is fired, not fired before listening. You could also try adding the plr argument in the urgent function

Server script is in workspace

Client script is in starter gui, although previously in starter player scripts

In all instances, everything in both those scripts has worked except for that one remote

By the way, that remote is in replicated storage

1 Like

Another thing you could maybe do is making sure the script is listening to the event and then is fired, not fired before listening. You could also try adding the plr argument in the urgent function

1 Like

plr event has been added in the urgent function, and it still does not print.

The script is definitely listening to the event before it gets fired.

Then I don’t know what might be wrong, maybe someone else can help

1 Like

I figured it out…

There’s a while loop earlier in the code which stops anything below running. Weird.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.