Roblox is creating responsive, cheat-resistant games with server authority

Become a member of GB MAX to gain exclusive access to the industry and to the most influential global B2B leadership community in the business of gaming, entertainment, and tech. Join now and also get a VIP ticket to GamesBeat Next (Nov 2-3, SF).

Roblox said it is introducing Server Authority with client prediction and rollback on Roblox to give creators a powerful new tool for creating hyper-responsive, secure games out of the box.

Roblox is inherently multiplayer and multi-device, said Bryan Nealer, principal product manager at Roblox, in a blog post. Server Authority helps games feel responsive and fair across devices by ensuring that any change to game state happens quickly and consistently. 

Server Authority has enormous benefits for both competitive and social games on Roblox, but building the tech from scratch is complex and often time-prohibitive. Roblox’s Server Authority solution provides a state-of-the-art foundation for realistic physical interactions, robust networking infrastructure, and anti-cheat systems that prevent client-side exploits so creators can focus on tuning gameplay and creating content rather than building custom solutions.

The benefits of server authority 

The sunrise of Celona. Source: Roblox

Server Authority makes the server the source of truth for game logic and simulation so that no single client can change the outcome for other players until it’s validated. Server Authority is essential for competitive games, but it also improves physical interactions like vehicle collisions or ball physics, and protects from client-side cheats like flings, wall clips, or speed hacks, making it useful even outside of multiplayer environments. 

Because it takes time for client inputs to reach the server, Server Authority alone could lead to a sluggish client-side experience while each client waits for validation before executing an action. We mitigate this with client-side prediction and rollback.

Each player’s client acts on the player’s actions immediately to maintain a smooth experience, and these actions are treated as predictions until validated with the server. In cases where the client and server state don’t match, the client seamlessly rewinds to the last known good server state and resimulates to catch up.

Learn more about how Server Authority works in the DevForum post

Server authority in action, with ThoughtSpinnr 

Starship repair Source: Roblox

Roblox creator ThoughtSpinnr is using Server Authority to prototype multiple games, including a space game that pushes the boundaries of Roblox’s physics engine: 

“With Server Authority, I get way more control and freedom over my games,” said ThoughtSpinnr, in a statement. “It raises my quality bar, and it’s such a generational leap for what we can do as creators.”

ThoughtSpinnr’s space game features a real-time action combat system and a custom character system powered by Roblox’s modular character controllers. “The real-time combat system would be dead in the water without Server Authority,” said ThoughtSpinnr. “In a multiplayer combat system, enemies and their state must be owned by the server and replicated down to clients to ensure consistency. If the game waits for a response from the server to validate combat actions, the game will feel highly sluggish. If the game applies changes locally, the version of the enemy’s state on my client will slowly but inevitably drift out of sync with the enemy’s state on the server. That’s not good in either scenario.” 

Introducing additional players and mechanics like abilities can compound these issues. Server Authority with rollback and resimulation can achieve responsiveness and consistency simultaneously. “With Server Authority, rollback, and resimulation, these problems are much, much easier to tackle,” said ThoughtSpinnr. “Combat can be fully simulated in its entirety on the client, with each client running hit, stun, and ability logic immediately, and then the client can be rolled back and resimulated if any mispredictions occur.”

An exhausted explorer in the Minnow class starship. Source: Roblox

ThoughtSpinnr already has plenty of other ideas for Server Authority. “Think of the most annoying problem you face with characters in your game. Now think of it disappearing at the click of a button,” said ThoughtSpinnr. “Cheating? Basically gone. Latency? Drastically reduced. Responsiveness? Instant. Why wouldn’t you turn it on?” 

Server Authority unlocks new dimensions of gameplay on Roblox by providing creators with a state-of-the-art foundation for building responsive, consistent, and secure gameplay. Server Authority reflects our commitment to giving creators sophisticated, modern tools for building the next generation of games on Roblox.