[HALLOWEEN] The Strongest Battlegrounds
30.2k Views
20.4k Executions

Lock on tsb

10K executions
The Strongest Battlegrounds
Zrbihzrhsejseihe
Zrbihzrhsejseihe10K executions
2 years ago
Please login to perform these actions:

Lock on tsb is a The Strongest Battlegrounds script for Roblox, uploaded to ScriptBlox on Jan 16, 2025.

Does it work?

No reports yet

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

Also noticed:

Description

Locks onto players/npcs

Updates

  1. Script edited: Create script

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

-- Create the GUI Button
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) -- 35x35 pixels
button.Position = UDim2.new(0, 605, 0, -40) -- Adjusted to be 100 more pixels to the right
button.Text = "Lock On" -- Lock icon
button.TextScaled = true
button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
button.TextColor3 = Color3.fromRGB(255, 255, 255)
button.BackgroundTransparency = 0.4  -- Slight transparency to make the glow more visible

-- Glow Frame (for the glow effect)
local glowFrame = Instance.new("Frame", button)
glowFrame.Size = UDim2.new(1.2, 0, 1.2, 0)  -- Slightly bigger than the button for the glow effect
glowFrame.Position = UDim2.new(0, -5, 0, -5) -- Position the glow around the button
glowFrame.BackgroundTransparency = 1
glowFrame.BackgroundColor3 = Color3.fromRGB(0, 255, 0)  -- Glow color (green)

-- Add a UIGradient to simulate the glow
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)  -- Make the glow fade out
glowGradient.Rotation = 45  -- Slight rotation for the glow effect

-- Make the glow invisible initially
glowFrame.Visible = false

-- Variables
local isLockedOn = false
local target = nil

-- Function to find the nearest target (players and NPCs) within a 50-stud radius


Comments

1
Log in to join the conversation. Login
picklemonster's profile picture
picklemonster2 years ago(edited)

Whats Ur user

1