Advertisement
rrixh

reborn aim

Jul 31st, 2023
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. -- @Matt / @Maz
  2. local configs = {
  3. main = {
  4. enabled = true,
  5. aimlockkey = "q",
  6. prediction = 0.1214, -- matt
  7. aimpart = 'HumanoidRootPart', -- Head, UpperTorso, HumanoidRootPart, LowerTorso
  8. notifications = true
  9. }
  10. }
  11. local boxsettings = {
  12. box = {
  13. Showbox = true,
  14. boxsize = Vector3.new(7, 7, 7), -- Box Size
  15. markercolor = Color3.fromRGB(153, 153, 255), -- Marrker Color
  16. markersize = UDim2.new(0.5, 0, 0.5, 0.2) -- Marker Size
  17. }
  18. }
  19. game.StarterGui:SetCore("SendNotification", {
  20. Title = "@maz / @matt";
  21. Text = "https://discord.gg/eHhwCDAu4X",
  22. Duration = 3
  23. })
  24. game.StarterGui:SetCore("SendNotification", {
  25. Title = "@maz / @matt";
  26. Text = "https://discord.gg/eHhwCDAu4X",
  27. Duration = 3
  28. })
  29. getgenv().keytoclick = "Q"
  30. tool = Instance.new("Tool")
  31. tool.RequiresHandle = false
  32. tool.Name = "aimloxk"
  33. tool.Activated:connect(function()
  34. local vim = game:service("VirtualInputManager")
  35. vim:SendKeyEvent(true, keytoclick, false, game)
  36. end)
  37. tool.Parent = game.Players.LocalPlayer.Backpack
  38. if getgenv().detector8383 then
  39. game.StarterGui:SetCore("SendNotification", {
  40. Title = "@maz / @matt";
  41. Text = "https://discord.gg/eHhwCDAu4X",
  42. Duration = 3
  43. })
  44. return
  45. end
  46. pcall(function() getgenv().detector8383 = true end)
  47. local box = Instance.new("Part", game.Workspace)
  48. local Mouse = game.Players.LocalPlayer:GetMouse()
  49. function makemarker(Parent, Adornee, Color, Size, Size2)
  50. local box = Instance.new("BillboardGui", Parent)
  51. box.Name = "PRIVATE-REWRITE!"
  52. box.Adornee = Adornee
  53. box.Size = UDim2.new(Size, Size2, Size, Size2)
  54. box.AlwaysOnTop = true
  55. local a = Instance.new("Frame", box)
  56. a.Size = boxsettings.box.markersize
  57. a.BackgroundColor3 = Color
  58. local g = Instance.new("UICorner", a)
  59. g.CornerRadius = UDim.new(50, 25)
  60. return (box)
  61. end
  62. getgenv().DONT_DELETE = true
  63. local Plr
  64. Mouse.KeyDown:Connect(function(KeyPressed)
  65. if KeyPressed == (configs.main.aimlockkey) then
  66. if configs.main.enabled == true then
  67. configs.main.enabled = false
  68. if configs.main.notifications == true then
  69. Plr = FindClosestUser()
  70. game.StarterGui:SetCore("SendNotification", {
  71. Title = "reborn",
  72. Text = ""
  73. })
  74. end
  75. else
  76. Plr = FindClosestUser()
  77. configs.main.enabled = true
  78. if configs.main.notifications == true then
  79. game.StarterGui:SetCore("SendNotification", {
  80. Title = "reborn",
  81. Text = "" .. tostring(Plr.Character.Humanoid.DisplayName)
  82. })
  83. end
  84. end
  85. end
  86. end)
  87. local data = game.Players:GetPlayers()
  88. function noob(player)
  89. local character
  90. repeat
  91. wait()
  92. until player.Character
  93. local handler = makemarker(guimain, player.Character:WaitForChild(configs.main.aimpart),
  94. Color3.fromRGB(153, 153, 255), 0.10, 8)
  95. handler.Name = player.Name
  96. player.CharacterAdded:connect(function(Char)
  97. handler.Adornee = Char:WaitForChild("HumanoidRootPart")
  98. end)
  99. end
  100. for i = 1, #data do
  101. if data[i] ~= game.Players.LocalPlayer then
  102. noob(data[i])
  103. end
  104. end
  105. game.Players.PlayerAdded:connect(function(Player)
  106. noob(Player)
  107. end)
  108. spawn(function()
  109. box.Anchored = true
  110. box.CanCollide = false
  111. box.Size = boxsettings.box.boxsize
  112. if boxsettings.box.Showbox == true then
  113. box.Transparency = 0.2
  114. else
  115. box.Transparency = 0.2
  116. end
  117. makemarker(box, box, boxsettings.box.markercolor, 0.40, 1)
  118. end)
  119. function FindClosestUser()
  120. local closestPlayer
  121. local ShortestDistance = 300
  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.  
  133. end
  134. end
  135. end
  136. return closestPlayer
  137. end
  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. repeat
  147. wait()
  148. until game:IsLoaded()
  149. local mt = getrawmetatable(game)
  150. local old = mt.__namecall
  151. setreadonly(mt, false)
  152. mt.__namecall = newcclosure(function(...)
  153. local args = {...}
  154. if configs.main.enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and getgenv().DONT_DELETE then
  155. args[3] = Plr.Character[configs.main.aimpart].Position +
  156. (Plr.Character[configs.main.aimpart].Velocity * configs.main.prediction)
  157. return old(unpack(args))
  158. end
  159. return old(...)
  160. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement