Advertisement
ZV0K

XL Lock 🪬

Aug 10th, 2023
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1.  
  2. game.StarterGui:SetCore("SendNotification", {
  3. Title = "blizex";
  4. Text = "if u have my lock u lucky do not leak or u will regret it";
  5.  
  6. })
  7.  
  8. local CC = game:GetService'Workspace'.CurrentCamera
  9. local Plr
  10. local enabled = true
  11. local accomidationfactor = 0.118979
  12. local mouse = game.Players.LocalPlayer:GetMouse()
  13. local placemarker = Instance.new("Part", game.Workspace)
  14. local guimain = Instance.new("Folder", game.CoreGui)
  15.  
  16. function makemarker(Parent, Adornee, Color, Size, Size2)
  17. local e = Instance.new("BillboardGui", Parent)
  18. e.Name = "PP"
  19. e.Adornee = Adornee
  20. e.Size = UDim2.new(Size, Size2, Size, Size2)
  21. e.AlwaysOnTop = true
  22. local a = Instance.new("Frame", e)
  23. a.Size = UDim2.new(0.5, 0.5, 0.5,0.5)
  24. a.BackgroundTransparency = 0
  25. a.BackgroundColor3 = Color
  26. local g = Instance.new("UICorner", a)
  27. g.CornerRadius = UDim.new(30, 30)
  28. return(e)
  29. end
  30.  
  31. local data = game.Players:GetPlayers()
  32. function noob(player)
  33. local character
  34. repeat wait() until player.Character
  35. local handler = makemarker(guimain, player.Character:WaitForChild("LowerTorso"), Color3.fromRGB(0, 76, 153), 0.0, 0)
  36. handler.Name = player.Name
  37. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild("LowerTorso") end)
  38.  
  39. local TextLabel = Instance.new("TextLabel", handler)
  40. TextLabel.BackgroundTransparency = 1
  41. TextLabel.Position = UDim2.new(0, 0, 0, -50)
  42. TextLabel.Size = UDim2.new(0, 100, 0, 100)
  43. TextLabel.Font = Enum.Font.SourceSansSemibold
  44. TextLabel.TextSize = 14
  45. TextLabel.TextColor3 = Color3.new(0.5, 0.5, 0.5)
  46. TextLabel.TextStrokeTransparency = 0
  47. TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  48. TextLabel.Text = 'Name: '..player.Name
  49. TextLabel.ZIndex = 10
  50.  
  51. spawn(function()
  52. while wait() do
  53. if player.Character then
  54. --TextLabel.Text = player.Name.." | Bounty: "..tostring(player:WaitForChild("leaderstats").Wanted.Value).." | "..tostring(math.floor(player.Character:WaitForChild("Humanoid").Health))
  55. end
  56. end
  57. end)
  58. end
  59.  
  60. for i = 1, #data do
  61. if data[i] ~= game.Players.LocalPlayer then
  62. noob(data[i])
  63. end
  64. end
  65.  
  66. game.Players.PlayerAdded:connect(function(Player)
  67. noob(Player)
  68. end)
  69.  
  70. game.Players.PlayerRemoving:Connect(function(player)
  71. guimain[player.Name]:Destroy()
  72. end)
  73.  
  74. spawn(function()
  75. placemarker.Anchored = true
  76. placemarker.CanCollide = false
  77. placemarker.Size = Vector3.new(10, 10, 10)
  78. placemarker.Transparency = 0.5
  79. makemarker(placemarker, placemarker, Color3.fromRGB(255, 206, 226), 0.55, 0)
  80. end)
  81.  
  82. mouse.KeyDown:Connect(function(k)
  83. if k ~= "v" then return end
  84. if enabled then
  85. enabled = false
  86. -- guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. else
  88. enabled = true
  89. Plr = getClosestPlayerToCursor()
  90. --guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  91. end
  92. end)
  93.  
  94. function getClosestPlayerToCursor()
  95. local closestPlayer
  96. local shortestDistance = math.huge
  97.  
  98. for i, v in pairs(game.Players:GetPlayers()) do
  99. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("Head") then
  100. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  101. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  102. if magnitude < shortestDistance then
  103. closestPlayer = v
  104. shortestDistance = magnitude
  105. end
  106. end
  107. end
  108. return closestPlayer
  109. end
  110.  
  111. game:GetService"RunService".Stepped:connect(function()
  112. if enabled and Plr.Character and Plr.Character:FindFirstChild("LowerTorso") then
  113. placemarker.CFrame = CFrame.new(Plr.Character.UpperTorso.Position+(Plr.Character.UpperTorso.Velocity*accomidationfactor))
  114. else
  115. placemarker.CFrame = CFrame.new(0, 9999, 0)
  116. end
  117. end)
  118.  
  119. local mt = getrawmetatable(game)
  120. local old = mt.__namecall
  121. setreadonly(mt, false)
  122. mt.__namecall = newcclosure(function(...)
  123. local args = {...}
  124. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  125. args[3] = Plr.Character.UpperTorso.Position+(Plr.Character.UpperTorso.Velocity*accomidationfactor)
  126. return old(unpack(args))
  127. end
  128. return old(...)
  129. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement