Universal Player Lockon

Uploaded On
Script Credit :- Sypse#6005
Features

Lockon

Script
--BROUGHT TO YOU BY RobloxScripter.com!--

local library = loadstring(game:HttpGet('https://sypse.xyz/dependencies/uwuware.lua'))(); local Main = library:CreateWindow("Lock-On: Sypse#6005"); local camera, plr = Workspace.CurrentCamera, game:GetService("Players").LocalPlayer; local mouse, rs = plr:GetMouse(), game:GetService("RunService").RenderStepped; local step; settings = { ["State"] = false; ["key"] = "B"; ["Part"] = "Head"; ["Mode"] = "Switch"; }; local closestplr; local function getplrposition() local closestpos = math.huge; for i,v in pairs(game.Players:GetPlayers()) do if v.Character and v ~= game.Players.LocalPlayer then pcall(function() local mag = (mouse.Hit.p - v.Character.HumanoidRootPart.CFrame.Position).Magnitude; if mag < closestpos then closestplr = v; closestpos = mag; end; end); end; end; end; local function loop() getplrposition(); step = rs:connect(function() if settings.Mode == "Switch" then getplrposition(); end; camera.CFrame = CFrame.new(camera.CFrame.Position, closestplr.Character[settings.Part].CFrame.Position); end); end; Main:AddList({text = "Mode", value = "Switch", values = {"Single", "Switch"}, callback = function(a) settings.Mode = a; end}); Main:AddList({text = "Part", value = "Head", values = {"Head", "HumanoidRootPart"}, callback = function(a) settings.Part = a; end}); Main:AddBind({text = "Keybind", key = settings.key, callback = function() settings.State = not settings.State; if settings.State then loop(); else step:Disconnect(); end; end}); library:Init();