Skip navigation
Server authoritative movement with client prediction and rollback/replay support.
0:00 / 0:44

Server authoritative movement with client prediction and rollback/replay support.

sleitnick

39K followers

Visit on X
520 likesDownloadOriginal post

20,583 views #RobloxDev

Server authoritative movement with client prediction and rollback/replay support. In this example, the client exploits by moving a wall out of the way. But the server owns the movement. The client has failed predictions due to the exploit, and rolls back. #RobloxDev

11 Comments

Comments from the original post on X (Twitter)

  • Totsie's profile picture

    @httptotem

    can't you use raycasting for noclip prevention without server authoritive movement

    3 likes

  • Soccer Bot™'s profile picture

    @soccerbottm

    Match Summary 💙 Get an absolute overview of your server several times - with the new Match Summary. Relax and never miss a game again. Activate the new function for your server today. Try Soccer Bot™:

    485 likes

  • DevGuy's profile picture

    @DeforsonGuy

    If the server owns the movement, wouldn't the movement be laggy? Try adding 1-second replication lag on studio.

    2 likes

  • sleitnick's profile picture

    @sleitnick

    This IS with replication lag. That's what client prediction is for

    18 likes

  • Andrew D's profile picture

    @andrew_d_d

    gameplay loop when :^)

    1 like

  • sleitnick's profile picture

    @sleitnick

    Yeah I've gotta still figure that out lol

  • Cedralian's profile picture

    @Cedralian

    Nice anti cheat!

    1 like

  • FaultyScript's profile picture

    @FaultyScript

    He’s always cookin

    1 like

  • nakiyu's profile picture

    @whereisnakiyu

    I’m not deeply into coding, but I’m really curious about what I'm seeing. Does this mean exploits like moving or spinning unanchored parts (e.g., walls or objects) would be prevented or made unusable?

    1 like

  • sleitnick's profile picture

    @sleitnick

    The server auth part makes any exploits pretty much impossible. The rollback (that rubberbanding effect) is just a result of the client "mispredicting" the move, i.e. the client and server disagreed with what the move should be, so the client moved back to the last verified move.

    9 likes

  • DabidarZ's profile picture

    @DabidarZ

    CLEAN ASF