Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can a player endlessly fire RemoteEvents?

So I know players can inject their own code. This makes me wonder though, what if a player injected code that fired RemoteEvents constantly and endlessly, wouldn't that slow down the server?

Thanks

2 comments

0

Remote events can be fired 6 times in the same frame before they timeout (aka without any wait() in between)

0

Possible yes, likely no, trackable yes, worth worrying about probably not

2 answers

Taken directly from the wiki:

For most devices and connections, a Roblox server can only send and receive about 50 KB/sec of data to each client, not including physics updates. That said, it is highly recommended to maintain a lower value during normal gameplay as sudden spikes in data transfer can cause lag and an overall subpar user experience.

Every time a remote event is fired or a remote function invoked, a packet of data is sent over the network between the server and client. This packet is counted towards the 50 KB/sec limit. If too many packets are sent (remote event or function used often), or too much data is sent per packet (lots of large arguments to the event or function), the latency of the connected clients can be adversely affected.

2 comments

0

So does this mean that even if a hacker is spamming remote events it won't affect the server because there is a limit per player?

0

It will affect the server. Like it says, if too much data is being sent, the latency of all your clients can be affected. This means the game can get very laggy for everyone and make it not enjoyable.

Yes, a client can spam remote events and functions, but I don't think it work slow down the server that much.

This discussion is preserved as it was. New answers, comments, and votes are closed.