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

Why does this script that when called, it prints something doesnt work?

Asked by 5 years ago

i made a script which prints "hi" when the event is called. But i get the error:13:33:20.308 - Remote event invocation queue exhausted for ReplicatedStorage.SpawnCarPaint; did you forget to implement OnServerEvent?

game.ReplicatedStorage.SpawnCarPaint.OnServerEvent:Connect(function(player)
print("hi")
end)

thanks!

0
Edit and show us the LocalScript. nicktooner 119 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Hi, I'm BlackOrange and I will be helping you out today

So the issue actually lies in the LocalScript. The ServerScript never got a signal which means your doing something wrong. There is nothing wrong with your code, so I suggest checking this list:

  1. Are the remote events the same one being fired and OnServerEvent?

  2. Do you have more of the same remote event? If so make sure you only have 1

  3. Check if SpawnCarPaint is actually in ReplicatedStorage

  4. Check if you actually even did :FireServer()

  5. Check if the LocalScript works fully (Like you must have some way to trigger the spawning)

  6. Check if the ServerScript is disabled

  7. Check if the LocalScript is disabled

  8. Check if the RemoteEvent is named properly

If you checked over ALL of these things and still doesn't work then:

Rewrite your code

Start by removing the remote events, re adding it, re naming it and then re using it.

Hopefully this helped.

I will not be able to help further more because the LocalScript was not provided.

Best of luck developer!

0
only local script can use FireServer() and OnClientEvent, and in server scripts you can only use FireClient(), FireAllClients() and OnServerEvent User#23793 0 — 5y
0
Not sure why you are commenting on my post but I'm pretty sure I know that BlackOrange3343 2676 — 5y
Ad

Answer this question