RemoteEvent Bug - Works in Roblox Studio but not Roblox Player

I have run into a roadblock and I’m unsure if it is a bug with Roblox. I have a script that works perfectly fine when I test it inside Roblox Studio but, whenever I test it in Roblox Player, it just doesn’t work. I’ve determined that either the event never happens or the event is never received by the client but I’m unsure why this issue only arises in Roblox Player. Any suggestions on how to go around fixing it?

1 Like

can you send the script please?

I did some more testing with a new RemoteEvent to the same result. Do you want the server side script or the client side script?

Is the server firing the event? If so, the issue may be that the server is firing it before the client connects to the event connection. To fix this, you could use another event that the client fires to the server to notify it has connected to the event, which the server can wait on before firing it.

Experimented with this and just put a wait statement on the server side. Apparently that did the trick, still confused as to why it worked on Roblox Studio and not Roblox Player before…

1 Like

Because you have higher ping when you’re connected to Roblox servers instead of your PC? A Studio playtest literally creates a mini server on your machine to run the Server-side scripts, and will have far lower latency than a normal connection from the Roblox player to a Roblox server.

1 Like

Sounds plausible, I’ll keep that in mind for next time.

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