Universal Script 📌
848 Views
6.5k Executions

LockOn

Universal Script 📌
Mmiyu
MmiyuFirst script
8 months 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

Lock and M1 reset

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Stats = game:GetService("Stats")

local player = Players.LocalPlayer

local LOCK_ON_RANGE = math.huge
local PREDICTION_TIME = 0.7
local UPDATE_INTERVAL = 0
local TURN_SPEED = 0


local lockedTarget = nil
local isLockedOn = false
local lockOnIndicator = nil
local lockOnToggle = nil
local lastUpdate = 0
local screenGui = nil
local connection = nil

local function createLockOnIndicator()
    local indicator = Instance.new("Part")
    indicator.Name = "LockOnIndicator"
    indicator.Size = Vector3.new(1.5, 1.5, 1.5)
    indicator.Shape = Enum.PartType.Ball
    indicator.Material = Enum.Material.Neon
    indicator.Color = Color3.new(0, 0, 0)
    indicator.Anchored = true
    indicator.CanCollide = false
    indicator.Transparency = 1
    indicator.Parent = workspace
    return indicator
end

local function createToggleButton()
    screenGui = Instance.new("ScreenGui")
    screenGui.Name = "LockOnUI"
    screenGui.Parent = player:WaitForChild("PlayerGui", 5)
    


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
4.1M
558.4k
Bumped 14 minutes ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.4k
28.8k
Bumped 1 hour ago
Key System
Script hub
14.0k
28.4k
Bumped 2 hours ago
Universal Script 📌
339.0k
74.9k
Bumped 2 hours ago
Script hub
462.0k
989.7k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 52 Supported Games + OP!

Universal Script 📌
70
6
Approved 3 hours ago