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

Questions regarding FilteringEnabled, RemoteEvents & BindableEvents?

I am currently trying to use FilteringEnabled for a game, but using one RemoteEvent and one BindableEvent for the whole game would make the code confusing to read and later on edit. So I was wondering if I were to use multiple RemoteEvent's and BindableEvent's for the game, would that cause more network lag then just one RemoteEvent and BindableEvent would? If not, are there any flaws to using multiple instead of one, and vise versa?

Also curious what type of exploit's aren't patched by FilteringEnabled, does it depend on how you code your game? Not counting the anti exploit scripts you can add.

1 answer

✓ Accepted answer

To answer your first question, my advice would be to use multiple RemoveEvents.
Any benefits you get from using only one will be very much outweighed by the increased readability and maintainability in your code, and I guess that it would help performance as it means less arguments have to be passed to the server, since each RemoteEvent has a specific purpose meaning it doesn't have to be told what to do.

As for the second question, FilteringEnabled will prevent most exploits, specifically those which involve inserting things into the game e.g. scripts and models. I'm not entirely sure if it prevents modifying the WalkSpeed etc. properties; I tried this on a local server and it does not seem to be the case.

But my general advice is don't worry too much about performance. If you do, then you wil probably create code which is very difficult to maintain, and any gain is probably not worth the effort.

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