Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do i check if a remote event has ran?

Asked by 1 year ago

What i mean by that is how do i check if a remote event that is fired from a server script can be checked if the remote event has ran. And if i can check that from another server script. Because the remote event is being fired to the client.

script.Parent.MouseClick:Connect(function()
    Highlight:Destroy()
    workspace.BendySFX:Play()
    game.ReplicatedStorage.PedestalItems.BendyDoll:FireAllClients()
    script.Parent.Parent:Destroy()
end)

3 answers

Log in to vote
0
Answered by 1 year ago

To do this, make another remote event, and make it fire when the client receives the event. Then make the event trigger the server script your using to try an see if the client event has been fired.

Ad
Log in to vote
1
Answered by 1 year ago

What I would do to check if remote event is working is put a script into serverscriptservice and in the script your going to want to print something that would shop up in your output log. Make sure you customize this script to work with your system script:

game.ReplicatedStorage.RemoteeventNAME.OnServerEvent:Connect(function()
    print("works")
end)

Hope this helps!!

0
Make sure RemoteEventNAME is changed to the name of your remote event theking66hayday 841 — 1y
Log in to vote
0
Answered by
manith513 121
1 year ago

Essentially I don't think you can directly check it has been fired without firing a bindablevent to another server script at the same time you fire your remote event. Fire a bindable event under your remote event and then check in a server script when it has been fired. Lmk if you want more help.

Answer this question