Press the lock-on key while you’re aiming at an enemy; in the Roblox Mayhem- style lock systems I found, the feature is usually toggled with a key like L , and it snaps your camera onto the target when you’re close enough.

How it usually works

  • Aim at the enemy first.
  • Press the lock-on button.
  • Press it again to unlock.
  • If you get too far away, lock-on may break.

If it is not working

  • Make sure you’re actually targeting an enemy, not empty space.
  • Stay within range.
  • Check the game’s controls menu, because some Roblox games remap lock-on to a different key.

Tiny example

If the game uses the default setup from the guide I found, you would look at the enemy and press L to lock on, then press L again to turn it off.

TL;DR: in most Roblox Mayhem-type games, lock-on is a toggle key, often L , and it works best when you’re close and facing the target.