ZV0K

Mal X Sin Lock

Aug 10th, 2023
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.23 KB | None | 0 0
  1. --[[
  2.  
  3. ███▄ ▄███▓ ██░ ██ ▄▄▄ ██▓ ▒██ ██▒ ██████ ██ ███▄ █ ██████
  4. ▓██▒▀█▀ ██▒▒▓██░ ██ ▒████▄ ▓██▒ ▒▒ █ █ ▒░ ▒██ ▒ ▒▓██ ██ ▀█ █ ▒██ ▒
  5. ▓██ ▓██░░▒██▀▀██ ▒██ ▀█▄ ▒██░ ░░ █ ░ ░ ▓██▄ ░▒██▓██ ▀█ ██▒░ ▓██▄
  6. ▒██ ▒██ ░▓█ ░██ ░██▄▄▄▄██▒██░ ░ █ █ ▒ ▒ ██▒ ░██▓██▒ ▐▌██▒ ▒ ██▒
  7. ▒▒██▒ ░██▒ ░▓█▒░██▓ ▓█ ▓██░██████ ▒██▒ ▒██▒ ▒██████▒▒ ░██▒██░ ▓██░▒██████▒▒
  8. ░░ ▒░ ░ ░ ▒ ░░▒░▒ ▒▒ ▓▒█░ ▒░▓ ▒▒ ░ ░▓ ░ ▒ ▒▓▒ ▒ ░ ░▓ ░ ▒░ ▒ ▒ ▒ ▒▓▒ ▒ ░
  9. ░░ ░ ░ ▒ ░▒░ ░ ░ ▒▒ ░ ░ ▒ ░░ ░▒ ░ ░ ░▒ ░ ▒ ░ ░░ ░ ▒░░ ░▒ ░
  10. ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░
  11. ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
  12.  
  13. ]]
  14. local configs = {
  15. main = {
  16. enabled = true,
  17. aimlockkey = "q",
  18. prediction = 0.157,
  19. aimpart = 'HumanoidRootPart', -- Head, UpperTorso, HumanoidRootPart, LowerTorso
  20. notifications = true
  21. }
  22. }
  23.  
  24. -- box / marker settings
  25.  
  26. local boxsettings = {
  27. box = {
  28. Showbox = false,
  29.  
  30. boxsize = Vector3.new(1.3, 2, 1.8), -- Box Size
  31. markercolor = Color3.fromRGB(75, 0, 130), -- Marrker Color
  32. markersize = UDim2.new(1, 2, 1) -- Marker Size
  33. }
  34. }
  35.  
  36. -- dont mess with anything below
  37. local box = Instance.new("Part", game.Workspace)
  38.  
  39. local Mouse = game.Players.LocalPlayer:GetMouse()
  40.  
  41. function makemarker(Parent, Adornee, Color, Size, Size2)
  42. local box = Instance.new("BillboardGui", Parent)
  43. box.Name = "MHAL X SINS!"
  44. box.Adornee = Adornee
  45. box.Size = UDim2.new(Size, Size2, Size, Size2)
  46. box.AlwaysOnTop = true
  47.  
  48. local a = Instance.new("Frame", box)
  49. a.Size = boxsettings.box.markersize
  50. a.BackgroundColor3 = Color
  51.  
  52. local g = Instance.new("UICorner", a)
  53. g.CornerRadius = UDim.new(50, 25)
  54. return (box)
  55. end
  56.  
  57. local Plr
  58. Mouse.KeyDown:Connect(function(KeyPressed)
  59. if KeyPressed == (configs.main.aimlockkey) then
  60. if configs.main.enabled == true then
  61. configs.main.enabled = false
  62. if configs.main.notifications == true then
  63. Plr = FindClosestUser()
  64. game.StarterGui:SetCore("SendNotification", {
  65. Title = "Mhal x Sins",
  66. Text = "Unlocked:"
  67. })
  68. end
  69. else
  70. Plr = FindClosestUser()
  71. configs.main.enabled = true
  72. if configs.main.notifications == true then
  73. game.StarterGui:SetCore("SendNotification", {
  74. Title = "Mhal x Sins",
  75. Text = "Locked On: " .. tostring(Plr.Character.Humanoid.DisplayName)
  76. })
  77. end
  78. end
  79. end
  80. end)
  81.  
  82. local data = game.Players:GetPlayers()
  83. function noob(player)
  84. local character
  85. repeat
  86. wait()
  87. until player.Character
  88. local handler = makemarker(guimain, player.Character:WaitForChild(configs.main.aimpart),
  89. Color3.fromRGB(107, 184, 255), 0.10, 8)
  90. handler.Name = player.Name
  91. player.CharacterAdded:connect(function(Char)
  92. handler.Adornee = Char:WaitForChild("HumanoidRootPart")
  93. end)
  94. end
  95.  
  96. for i = 1, #data do
  97. if data[i] ~= game.Players.LocalPlayer then
  98. noob(data[i])
  99. end
  100. end
  101.  
  102. game.Players.PlayerAdded:connect(function(Player)
  103. noob(Player)
  104. end)
  105.  
  106. spawn(function()
  107. box.Anchored = true
  108. box.CanCollide = false
  109. box.Size = boxsettings.box.boxsize
  110. if boxsettings.box.Showbox == true then
  111. box.Transparency = 0.10
  112. else
  113. box.Transparency = 1
  114. end
  115. makemarker(box, box, boxsettings.box.markercolor, 0.40, 1)
  116. end)
  117.  
  118. function FindClosestUser()
  119. local closestPlayer
  120. local ShortestDistance = 300
  121.  
  122. for i, v in pairs(game.Players:GetPlayers()) do
  123. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and
  124. v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
  125. local pos = game:GetService "Workspace".CurrentCamera:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  126. local magnitude = (Vector2.new(pos.X, pos.Y) -
  127. Vector2.new(game.Players.LocalPlayer:GetMouse().X,
  128. game.Players.LocalPlayer:GetMouse().Y)).magnitude
  129. if magnitude < ShortestDistance then
  130. closestPlayer = v
  131. ShortestDistance = magnitude
  132. end
  133. end
  134. end
  135. return closestPlayer
  136. end
  137.  
  138. game:GetService "RunService".Stepped:connect(function()
  139. if configs.main.enabled and Plr.Character and Plr.Character:FindFirstChild("HumanoidRootPart") then
  140. box.CFrame = CFrame.new(Plr.Character[configs.main.aimpart].Position +
  141. (Plr.Character.UpperTorso.Velocity * configs.main.prediction))
  142. else
  143. box.CFrame = CFrame.new(0, 9999, 0)
  144. end
  145. end)
  146.  
  147. repeat
  148. wait()
  149. until game:IsLoaded()
  150. local mt = getrawmetatable(game)
  151. local old = mt.__namecall
  152. setreadonly(mt, false)
  153. mt.__namecall = newcclosure(function(...)
  154. local args = {...}
  155. if configs.main.enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  156. args[3] = Plr.Character[configs.main.aimpart].Position +
  157. (Plr.Character[configs.main.aimpart].Velocity * configs.main.prediction)
  158. return old(unpack(args))
  159. end
  160. return old(...)
  161. end)
Add Comment
Please, Sign In to add comment