SIREN HEAD: LEGACY
1.0k Views
4.3k Executions

WallLock

SIREN HEAD: LEGACY
sasadsds
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 yet

No 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.

View Raw
-- 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


Comments

1
Log in to join the conversation. Login
MKdoyu34's profile picture
MKdoyu343 weeks ago

Add mobile support pls

1

More SIREN HEAD: LEGACY scripts

See all