Advertisement
rrixh

kamloxk v5 w "q" tool

Jul 14th, 2023 (edited)
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. getgenv().keybind = "q"
  2. getgenv().prediction = 0.1258 -- DO NOT ask for me for HELP for this shit I HATE when people do that. Figure it out on your own you have brain cells.
  3. getgenv().ballistics = 0.35
  4. getgenv().smoothness = 9.5
  5. getgenv().fovradius = 120
  6. getgenv().fovvisible = false
  7. getgenv().Settings = {
  8. Head = "HumanoidRootPart", -- called Head but its aimpart dw
  9. }
  10.  
  11. Drawing = Drawing
  12. mousemoverel = mousemoverel
  13.  
  14. local Settings = {
  15. Head = "HumanoidRootPart";
  16. Humanoid = "Humanoid";
  17. NeckOffSet = Vector3.new(0,tonumber(getgenv().ballistics),0);
  18. };
  19.  
  20. local Locking = false
  21. local Players = game:GetService("Players")
  22. local LocalPlayer = Players.LocalPlayer
  23. local Mouse = LocalPlayer:GetMouse()
  24.  
  25. local UserInputService = game:GetService("UserInputService")
  26. local RunService = game:GetService("RunService")
  27. local Camera = game:GetService("Workspace").CurrentCamera
  28.  
  29. local FOV_CIRCLE = Drawing.new("Circle")
  30. FOV_CIRCLE.Filled = false
  31. FOV_CIRCLE.Color = Color3.fromRGB(170, 255, 255)
  32. FOV_CIRCLE.Radius = getgenv().fovradius
  33. FOV_CIRCLE.Thickness = 1
  34. FOV_CIRCLE.Visible = getgenv().fovvisible
  35. FOV_CIRCLE.Transparency = .35
  36. FOV_CIRCLE.Position = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
  37.  
  38. local Move_Circle = nil
  39. Move_Circle = RunService.RenderStepped:Connect(function()
  40. FOV_CIRCLE.Position = Vector2.new(UserInputService:GetMouseLocation().X, UserInputService:GetMouseLocation().Y)
  41. end)
  42.  
  43. function InRadius()
  44. local Target = nil
  45. local Distance = 9e9
  46. local Camera = game:GetService("Workspace").CurrentCamera
  47. for _, v in pairs(Players:GetPlayers()) do
  48. if v ~= LocalPlayer and v.Character and v.Character[Settings.Head] and v.Character[Settings.Humanoid] and v.Character[Settings.Humanoid].Health > 0 then
  49. local Enemy = v.Character
  50. local CastingFrom = CFrame.new(Camera.CFrame.Position, Enemy[Settings.Head].CFrame.Position) * CFrame.new(0, 0, -4)
  51. local RayCast = Ray.new(CastingFrom.Position, CastingFrom.LookVector * 9000)
  52. local World, ToSpace = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(RayCast, {LocalPlayer.Character[Settings.Head]});
  53. local RootWorld = (Enemy[Settings.Head].CFrame.Position - ToSpace).magnitude
  54. if RootWorld < 4 then
  55. local RootPartPosition, Visible = Camera:WorldToViewportPoint(Enemy[Settings.Head].Position)
  56. if Visible then
  57. local Real_Magnitude = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(RootPartPosition.X, RootPartPosition.Y)).Magnitude
  58. if Real_Magnitude < Distance and Real_Magnitude < FOV_CIRCLE.Radius then
  59. Distance = Real_Magnitude
  60. Target = Enemy
  61. end
  62. end
  63. end
  64. end
  65. end
  66. return Target
  67. end
  68.  
  69. local Render_Lock = nil
  70. function Aimbot()
  71. pcall(function()
  72. if Locking then
  73. local Enemy = InRadius()
  74. local Camera = game:GetService("Workspace").CurrentCamera
  75. local Predicted_Position = nil
  76. local GetPositionsFromVector3 = nil
  77. if Enemy ~= nil and Enemy[Settings.Humanoid] and Enemy[Settings.Humanoid].Health > 0 then
  78. Render_Lock = RunService.Stepped:Connect(function()
  79. pcall(function()
  80. if Locking and Enemy ~= nil and Enemy[Settings.Humanoid] and Enemy[Settings.Humanoid].Health > 0 then
  81.  
  82. Predicted_Position = Enemy[Settings.Head].Position + (Enemy[Settings.Head].AssemblyLinearVelocity * getgenv().prediction + Settings.NeckOffSet)
  83. GetPositionsFromVector3 = Camera:WorldToScreenPoint(Predicted_Position)
  84. mousemoverel((GetPositionsFromVector3.X - Mouse.X) / getgenv().smoothness, (GetPositionsFromVector3.Y - Mouse.Y) / getgenv().smoothness)
  85.  
  86. elseif Locking == false then
  87. Enemy = nil
  88. elseif Enemy == nil then
  89. Locking = false
  90. end
  91. end)
  92. end)
  93. end
  94. end
  95. end)
  96. end
  97.  
  98. Mouse.KeyDown:Connect(function(KeyPressed)
  99. if KeyPressed == string.lower(getgenv().keybind) then
  100. pcall(function()
  101. if Locking == false then
  102. Locking = true
  103. Aimbot()
  104. elseif Locking == true then
  105. Locking = false
  106. Render_Lock:Disconnect()
  107. end
  108. end)
  109. end
  110. end)
  111.  
  112. Mouse.KeyDown:Connect(function(Rejoin)
  113. if Rejoin == string.lower(Rejoin_Key) then
  114. game:GetService("TeleportService"):Teleport(game.PlaceId, LocalPlayer) task.wait()
  115. end
  116. end);
  117. -- q tool
  118. getgenv().keytoclick = "q"
  119. tool = Instance.new("Tool")
  120. tool.RequiresHandle = false
  121. tool.Name = keytoclick
  122. tool.Activated:connect(function()
  123. local vim = game:service("VirtualInputManager")
  124. vim:SendKeyEvent(true, keytoclick, false, game)
  125. end)
  126. tool.Parent = game.Players.LocalPlayer.Backpack
  127.  
  128. game.StarterGui:SetCore("SendNotification", {
  129. Title = "lulaslollipop#0140 / rrixh";
  130. Text = "🍭🍭🍭";
  131.  
  132. })
  133.  
  134. local player = game.Players.LocalPlayer
  135.  
  136. local function connectCharacterAdded()
  137. player.CharacterAdded:Connect(onCharacterAdded)
  138. end
  139.  
  140. connectCharacterAdded()
  141.  
  142. player.CharacterRemoving:Connect(function()
  143. tool.Parent = game.Players.LocalPlayer.Backpack
  144. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement