1.0k Views
4.3k Executions
WallLock
SIREN HEAD: LEGACY
sasadsds10K executions
3 months ago
Please login to perform these actions:WallLock is a SIREN HEAD: LEGACY script for Roblox, uploaded to ScriptBlox on Aug 17, 2026.
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Automatically detects the player closest to your cursor and surrounds them with walls to restrict their movement.
-- Toggle U key
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local Camera = workspace.CurrentCamera
local LocalPlayer = Players.LocalPlayer
local BuildEvent = game.ReplicatedStorage.remotes.build
local Enabled = false
UserInputService.InputBegan:Connect(function(Input, GameProcessed)
if GameProcessed then return end
if Input.KeyCode == Enum.KeyCode.U then
Enabled = not Enabled
end
end)
while task.wait() do
if Enabled then
local MousePosition = UserInputService:GetMouseLocation()
local ClosestPlayer = nil
local ClosestDistance = math.huge
for _, Player in ipairs(Players:GetPlayers()) do
if Player ~= LocalPlayer then
local Character = Player.Character
local RootPart = Character and Character:FindFirstChild("HumanoidRootPart")
if RootPart then
local ScreenPosition, OnScreen = Camera:WorldToViewportPoint(RootPart.Position)
if OnScreen then
local Distance = (Vector2.new(ScreenPosition.X, ScreenPosition.Y) - MousePosition).Magnitude
if Distance < ClosestDistance then
ClosestDistance = Distance
ClosestPlayer = Player
end
end

Add mobile support pls