Universal Script πŸ“Œ
3.3k Views
340 Executions

Universal lock

Universal Script πŸ“Œ
*RubOilOnMyBum
*RubOilOnMyBumFirst script
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

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

Also noticed:

Description

Randomizes body part hit πŸ”’ Movable button βž•οΈ

Updates

  1. Script edited: Update script

View Raw
repeat wait() until game:IsLoaded()

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local VirtualInputManager = game:GetService("VirtualInputManager")
local Camera = workspace.CurrentCamera
local LocalPlayer = Players.LocalPlayer

local lockEnabled = false
local target = nil
local targetPart = nil
local isFiring = false

-- GUI
local gui = Instance.new("ScreenGui", game.CoreGui)
gui.Name = "PerfectLockGUI"

local toggleBtn = Instance.new("TextButton", gui)
toggleBtn.Size = UDim2.new(0, 140, 0, 50)
toggleBtn.Position = UDim2.new(0.5, -70, 0.9, 0)
toggleBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleBtn.Font = Enum.Font.GothamBold
toggleBtn.TextSize = 20
toggleBtn.Text = "πŸ”“ Lock OFF"
toggleBtn.BorderSizePixel = 0
toggleBtn.Draggable = true

-- Get target by center aim
local function getClosestTarget()
	local closest, shortest = nil, math.huge
	for _, plr in ipairs(Players:GetPlayers()) do
		if plr ~= LocalPlayer and plr.Character and plr.Character:FindFirstChild("Head") then
			local head = plr.Character.Head
			local pos, onScreen = Camera:WorldToViewportPoint(head.Position)
			if onScreen then
				local screenPos = Vector2.new(pos.X, pos.Y)
				local center = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
				local dist = (screenPos - center).Magnitude
				if dist < 100 and dist < shortest then


Comments

4
Log in to join the conversation. Login
*RubOilOnMyBum's profile picture
*RubOilOnMyBumUploader1 year ago

Fixed

1
*RubOilOnMyBum's profile picture
*RubOilOnMyBumUploader1 year ago

So u want it to be blatant and less glitchy

1
luxivislol's profile picture
luxivislol1 year ago

It’s a good lock but it’s too simple and kinda glitchy on the character but it does work with slight problems with predictions when shooting.

1
*RubOilOnMyBum's profile picture
*RubOilOnMyBumUploader1 year ago

How it work

1

More universal scripts

See all
Universal Script πŸ“Œ
10
0
Approved 5 minutes ago
Universal Script πŸ“Œ
11
0
Approved 14 minutes ago
Script hub
23.9k
117.7k
Bumped 2 hours ago
Key System
Script hub
46.5k
206.9k
Bumped 2 hours ago

Script hub

Sp3arParvus

Universal Script πŸ“Œ
41
5
Approved 2 hours ago
Script hub
41
4
Approved 3 hours ago
Key System

Script hub

Friedpotato Hub