---
title: "The Strongest Battlegrounds Script for Roblox: Auto lock on when blocking - ScriptBlox"
description: "The Strongest Battlegrounds Roblox script: Auto lock on when blocking. Auto locks onto nearest player within a close distance when blocking"
canonical_url: "https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851"
meta:
  "og:description": "The Strongest Battlegrounds Roblox script: Auto lock on when blocking. Auto locks onto nearest player within a close distance when blocking"
  "og:image": "https://scriptblox.com/images/script/10449761463-1758807859842.jpg"
  "og:title": "The Strongest Battlegrounds Script for Roblox: Auto lock on when blocking - ScriptBlox"
  "twitter:description": "The Strongest Battlegrounds Roblox script: Auto lock on when blocking. Auto locks onto nearest player within a close distance when blocking"
  "twitter:image": "https://scriptblox.com/images/script/10449761463-1758807859842.jpg"
  "twitter:title": "The Strongest Battlegrounds Script for Roblox: Auto lock on when blocking - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![The Strongest Battlegrounds](https://scriptblox.com/images/script/10449761463-1758807859842.jpg)

# **Auto lock on when blocking**

[**The Strongest Battlegrounds**](https://scriptblox.com/game/10449761463-the-strongest-battlegrounds)**![Zrbihzrhsejseihe](https://scriptblox.com/images/photo/677a99883f0c738340d7355e-1737353003337.jpg) [Zrbihzrhsejseihe](https://scriptblox.com/u/Zrbihzrhsejseihe)10K executions**

1 year ago

[**Play game **](roblox://placeId=10449761463) [**Game Link **](https://roblox.com/games/10449761463)

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

Auto lock on when blocking is a The Strongest Battlegrounds script for Roblox, uploaded to ScriptBlox on Sep 25, 2025.

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

Auto locks onto nearest player within a close distance when blocking

[View Raw](https://scriptblox.com/raw/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851)

```
-- Lock On Script (TSB style, with animation trigger)
--[[
 WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local playerGui = player:WaitForChild("PlayerGui")

-- CONFIG
local LOCK_ON_ANIM_ID = "10470389827" -- Animation ID to trigger lock-on
local MAX_DISTANCE = 50

-- GUI
local screenGui = Instance.new("ScreenGui", playerGui)
screenGui.Name = "LockOnGui"

local button = Instance.new("TextButton", screenGui)
button.Name = "LockOnButton"
button.Size = UDim2.new(0, 35, 0, 35)
button.Position = UDim2.new(0, 605, 0, -40)
button.Text = "Lock"
button.TextScaled = true
button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
button.TextColor3 = Color3.fromRGB(255, 255, 255)
button.BackgroundTransparency = 0.4

local glowFrame = Instance.new("Frame", button)
glowFrame.Size = UDim2.new(1.2, 0, 1.2, 0)
glowFrame.Position = UDim2.new(0, -5, 0, -5)
glowFrame.BackgroundTransparency = 1
glowFrame.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
local glowGradient = Instance.new("UIGradient", glowFrame)
glowGradient.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0), Color3.fromRGB(0, 255, 0))
glowGradient.Transparency = NumberSequence.new(0.5, 1)
glowGradient.Rotation = 45
glowFrame.Visible = false


```

## **Comments **

**1**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851)

![afternear's profile picture](https://scriptblox.com/images/user-default.webp)

[**afternear**](https://scriptblox.com/u/afternear)1 year ago

Anyway to configurate this script for the weapon-using characters? Such as Sonic or Metal Bat? Thanks

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851#script","url":"https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851","name":"Auto lock on when blocking","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"Zrbihzrhsejseihe","url":"https://scriptblox.com/u/Zrbihzrhsejseihe"},"datePublished":"2025-09-25T13:44:19.855Z","image":"https://scriptblox.com/images/script/10449761463-1758807859842.jpg","about":{"@type":"VideoGame","name":"The Strongest Battlegrounds","gamePlatform":"Roblox"},"isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851#webpage","@type":"WebPage","description":"The Strongest Battlegrounds Roblox script: Auto lock on when blocking. Auto locks onto nearest player within a close distance when blocking","name":"The Strongest Battlegrounds Script for Roblox: Auto lock on when blocking - ScriptBlox","url":"https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851","breadcrumb":{"@id":"https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851"]}]},{"@id":"https://scriptblox.com/script/The-Strongest-Battlegrounds-Auto-lock-on-when-blocking-54851#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"The Strongest Battlegrounds","item":"https://scriptblox.com/game/10449761463-the-strongest-battlegrounds","position":2},{"@type":"ListItem","name":"Auto lock on when blocking","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
