Advertisement
rrixh

r6 aimbot w/notify

Aug 7th, 2023 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. --aimbot
  2. local Camera = game:GetService("Workspace").CurrentCamera
  3. local Players = game:GetService("Players")
  4. local LocalPlayer = game:GetService("Players").LocalPlayer
  5.  
  6. local function GetClosestPlayer()
  7. local ClosestPlayer = nil
  8. local FarthestDistance = math.huge
  9.  
  10. for i, v in pairs(Players.GetPlayers(Players)) do
  11. if v ~= LocalPlayer and v.Character and v.Character.FindFirstChild(v.Character, "HumanoidRootPart") then
  12. local DistanceFromPlayer = (LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude
  13.  
  14. if DistanceFromPlayer < FarthestDistance then
  15. FarthestDistance = DistanceFromPlayer
  16. ClosestPlayer = v
  17. end
  18. end
  19. end
  20.  
  21. if ClosestPlayer then
  22. return ClosestPlayer
  23. end
  24. end
  25.  
  26. local GameMetaTable = getrawmetatable(game)
  27. local OldGameMetaTableNamecall = GameMetaTable.__namecall
  28. setreadonly(GameMetaTable, false)
  29.  
  30. GameMetaTable.__namecall = newcclosure(function(object, ...)
  31. local NamecallMethod = getnamecallmethod()
  32. local Arguments = {...}
  33.  
  34. if tostring(NamecallMethod) == "FindPartOnRayWithIgnoreList" then
  35. local ClosestPlayer = GetClosestPlayer()
  36.  
  37. if ClosestPlayer and ClosestPlayer.Character then
  38. Arguments[1] = Ray.new(Camera.CFrame.Position, (ClosestPlayer.Character.Head.Position - Camera.CFrame.Position).Unit * (Camera.CFrame.Position - ClosestPlayer.Character.Head.Position).Magnitude)
  39. end
  40. end
  41.  
  42. return OldGameMetaTableNamecall(object, unpack(Arguments))
  43. end)
  44.  
  45. setreadonly(GameMetaTable, true)
  46. --end--
  47.  
  48. -- kustom notifier
  49. function Notify(titletxt, text, time)
  50. local GUI = Instance.new("ScreenGui")
  51. local Main = Instance.new("Frame", GUI)
  52. local title = Instance.new("TextLabel", Main)
  53. local message = Instance.new("TextLabel", Main)
  54. GUI.Name = "NotificationOof"
  55. GUI.Parent = game.CoreGui
  56. Main.Name = "MainFrame"
  57. Main.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  58. Main.BorderSizePixel = 0
  59. Main.Position = UDim2.new(1, 5, 0, 50)
  60. Main.Size = UDim2.new(0, 330, 0, 100)
  61.  
  62. title.BackgroundColor3 = Color3.new(0, 0, 0)
  63. title.BackgroundTransparency = 0.89999997615814
  64. title.Size = UDim2.new(1, 0, 0, 30)
  65. title.Font = Enum.Font.SourceSansSemibold
  66. title.Text = titletxt
  67. title.TextColor3 = Color3.new(1, 1, 1)
  68. title.TextSize = 17
  69.  
  70. message.BackgroundColor3 = Color3.new(0, 0, 0)
  71. message.BackgroundTransparency = 1
  72. message.Position = UDim2.new(0, 0, 0, 30)
  73. message.Size = UDim2.new(1, 0, 1, -30)
  74. message.Font = Enum.Font.SourceSans
  75. message.Text = text
  76. message.TextColor3 = Color3.new(1, 1, 1)
  77. message.TextSize = 16
  78.  
  79. wait(0.1)
  80. Main:TweenPosition(UDim2.new(1, -330, 0, 50), "Out", "Sine", 0.5)
  81. wait(time)
  82. Main:TweenPosition(UDim2.new(1, 5, 0, 50), "Out", "Sine", 0.5)
  83. wait(0.6)
  84. GUI:Destroy();
  85. end
  86. --end--
  87. Notify("AIMBOT ON✅", "make sure u are R6 or it will bug!", 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement