
66.1k Views
277 Executions
Sfoth playerlock
Universal Script 📌
districtora9First script
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
-- lock onto players when sword fighting
Updates
Script edited: Create script
-- Load AkiriUI and AkaliNotif
local AkiriUI = loadstring(game:HttpGet("https://akiri.best/assets/files/gayasf.ui2?key=5y1lxXSfWKhlQkSqhUuFyB8kPp8hsCau"))()
local AkaliNotif = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/Dynissimo/main/Scripts/AkaliNotif.lua"))()
local Notify = AkaliNotif.Notify
-- Notification
Notify({
Title = "Meowbucks pussy cat sword fighting playerlock script",
Text = "Discord meowbucks",
Duration = 5
})
-- Ensure that the script is executed after all services and players are loaded
local function waitForChild(parent, name)
return parent:WaitForChild(name, 10) -- Adjust timeout as needed
end
local function safeLoad(func)
local success, result = xpcall(func, function(err)
Notify({
Title = "Script Error",
Text = err,
Duration = 5
})
end)
return success, result
end
-- Lock player onto nearest player
local function getNearestPlayer()
local myCharacter = game.Players.LocalPlayer.Character
if not myCharacter or not myCharacter:FindFirstChild("HumanoidRootPart") then
return nil
end
local nearestPlayer = nil
local shortestDistance = math.huge
for _, player in ipairs(game.Players:GetPlayers()) do
if player ~= game.Players.LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
local distance = (myCharacter.HumanoidRootPart.Position - player.Character.HumanoidRootPart.Position).magnitude









and how to enable and disable it?