Working on a custom framework I use across my Roblox games, and now getting into networking. I want to make an event wrapper that’s:
Cleaner and better than regular events
Secure, clients can’t exploit it.
Easy to reuse across projects.
How do I go about making an event wrapper like this, I have read some source code of bridge net and packet, but both of those seem a bit too complex for my liking.
Any help at all on how to make a good event wrapper?
Exploits will always remain possible, whether or not you use an Event Wrapper; what really determines how vulnerable your game is, is how you handle and validate the information sent by clients. A wrapper can make your code cleaner and easier to maintain, but it doesn’t inherently secure your game; security depends entirely on thorough server-side validation, whitelisting allowed actions, rate-limiting, and implementing fail-safes to prevent malicious input from causing unintended behavior.