Advertisement
Guest User

OP SILENT AIM FOR RIVALS

a guest
Dec 12th, 2024
1,221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. --[[
  2. Rivals Open Source (silent aim)
  3. ]]
  4.  
  5. local VirtualInputManager = game:GetService("VirtualInputManager")
  6. local runS = game:GetService("RunService")
  7. local pl = game:GetService("Players")
  8. local lp = pl.LocalPlayer
  9. local char = lp.Character or lp.CharacterAdded:Wait()
  10. local ws = game:GetService("Workspace")
  11. local camera = workspace.CurrentCamera
  12. local UIS = game:GetService("UserInputService")
  13. local mousePPos = UIS:GetMouseLocation()
  14. runS.RenderStepped:Connect(function() mousePPos = UIS:GetMouseLocation() end)
  15. local Center = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 2)
  16.  
  17. local FullSettings = {
  18. AimBot = {
  19. Checks = {
  20. TeamCheck = true,
  21. WallCheck = true,
  22. AliveCheck = true
  23. },
  24. Fov = {
  25. Enable = true,
  26. Visible = true,
  27. Thickness = 0.6,
  28. Color = Color3.fromRGB(255, 255, 255),
  29. LockColor = Color3.fromRGB(255, 0, 0),
  30. OffColor = Color3.fromRGB(150, 150, 150),
  31. Filled = false,
  32. Size = 10000
  33. },
  34. Values = {
  35. Enable = true,
  36. Toggle = true, -- Đặt Toggle thành true để tự động hoạt động
  37. HitPart = "HitboxHead",
  38. HitPartList = {"Head", "LeftFoot", "LeftHand", "LeftLowerArm", "LeftLowerLeg", "LeftUpperArm", "LowerTorso", "RightFoot", "RightHand", "RightLowerArm", "RightLowerLeg", "RightUpperArm", "RightUpperLeg", "UpperTorso", "HitboxBody", "FakeMass", "HitboxBodySmall", "HumanoidRootPart"}
  39. }
  40. },
  41. Esp = {
  42. Checks = {
  43. TeamCheck = true,
  44. WallCheck = false,
  45. AliveCheck = true
  46. },
  47. Values = {
  48. Enabled = true,
  49. FillColor = Color3.fromRGB(255, 255, 255),
  50. FillTransparency = 0.5,
  51. OutlineColor = Color3.fromRGB(200, 200, 200),
  52. OutlineTransparency = 0
  53. }
  54. }
  55. }
  56.  
  57. do -- Aimbot
  58. local FOV = Drawing.new("Circle")
  59. FOV.Visible = false
  60. FOV.Visible = FullSettings.AimBot.Fov.Enable
  61. FOV.Thickness = FullSettings.AimBot.Fov.Thickness
  62. FOV.Color = FullSettings.AimBot.Fov.Color
  63. FOV.Filled = FullSettings.AimBot.Fov.Filled
  64. FOV.Radius = FullSettings.AimBot.Fov.Size
  65. FOV.Position = mousePPos
  66.  
  67. runS.RenderStepped:Connect(function() FOV.Position = mousePPos end)
  68.  
  69. coroutine.wrap(function ()
  70. local function GetPartToFov(Part)
  71. for _, v in ipairs(pl:GetPlayers()) do
  72. if v ~= lp and v.Character and v.Character:FindFirstChild(Part) then
  73. if FullSettings.AimBot.Checks.AliveCheck and v.Character:FindFirstChildOfClass("Humanoid") and v.Character.Humanoid.Health <= 0 then continue end
  74.  
  75. local ray = workspace:FindPartOnRayWithIgnoreList(
  76. Ray.new(camera.CFrame.Position,
  77. (v.Character[Part].Position - camera.CFrame.Position).Unit *
  78. (v.Character[Part].Position - camera.CFrame.Position).Magnitude),
  79. {lp.Character, camera}
  80. )
  81.  
  82. if FullSettings.AimBot.Checks.WallCheck and (not ray or not ray:IsDescendantOf(v.Character)) then continue end
  83. if FullSettings.AimBot.Checks.TeamCheck and v.Character:FindFirstChild("HumanoidRootPart") and v.Character.HumanoidRootPart:FindFirstChild("TeammateLabel") then continue end
  84. local vPos = camera:WorldToViewportPoint(v.Character[Part].Position)
  85. local distance = (Vector2.new(vPos.X, vPos.Y) - mousePPos).Magnitude
  86.  
  87. if FullSettings.AimBot.Fov.Enable and (distance > FullSettings.AimBot.Fov.Size) then continue end
  88. return v
  89. end
  90. end
  91. end
  92.  
  93. while task.wait() do
  94. if FullSettings.AimBot.Values.Enable then
  95. if not lp.PlayerGui.MainGui.MainFrame.Lobby.Currency.Visible then
  96. local Target = GetPartToFov(FullSettings.AimBot.Values.HitPart)
  97.  
  98. if Target ~= nil then
  99. FOV.Color = FullSettings.AimBot.Fov.LockColor
  100. else
  101. FOV.Color = FullSettings.AimBot.Fov.Color
  102. end
  103.  
  104. if Target and Target.Character and Target.Character:FindFirstChild(FullSettings.AimBot.Values.HitPart) and camera:WorldToViewportPoint(Target.Character[FullSettings.AimBot.Values.HitPart].Position).Z > 0 then
  105. camera.CFrame = CFrame.new(camera.CFrame.Position + (Target.Character[FullSettings.AimBot.Values.HitPart].Position - camera.CFrame.Position).Unit * 0.5, Target.Character[FullSettings.AimBot.Values.HitPart].Position)
  106.  
  107. end
  108. end
  109. end
  110. end
  111. end)()
  112. end
  113.  
  114. do -- Esp
  115. coroutine.wrap(function ()
  116. while task.wait() do
  117. for _, v in pairs(pl:GetPlayers()) do
  118. if v ~= lp and v.Character then
  119. local Esp = v.Character:FindFirstChild("Esp")
  120.  
  121. if FullSettings.Esp.Checks.AliveCheck and v.Character:FindFirstChildOfClass("Humanoid") and v.Character.Humanoid.Health <= 0 then if Esp then Esp:Destroy() end continue end
  122. if FullSettings.Esp.Checks.TeamCheck and v.Character:FindFirstChild("HumanoidRootPart") and v.Character.HumanoidRootPart:FindFirstChild("TeammateLabel") then if Esp then Esp:Destroy() end continue end
  123. if not Esp then
  124. Esp = Instance.new("Highlight")
  125. Esp.RobloxLocked = true
  126. Esp.Name = "Esp"
  127. Esp.Adornee = v.Character
  128. Esp.Parent = v.Character
  129. end
  130.  
  131. if Esp then
  132. if FullSettings.Esp.Checks.WallCheck then
  133. Esp.DepthMode = Enum.HighlightDepthMode.Occluded
  134. else
  135. Esp.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  136. end
  137.  
  138. Esp.Enabled = FullSettings.Esp.Values.Enabled
  139. Esp.FillColor = FullSettings.Esp.Values.FillColor
  140. Esp.FillTransparency = FullSettings.Esp.Values.FillTransparency
  141. Esp.OutlineColor = FullSettings.Esp.Values.OutlineColor
  142. Esp.OutlineTransparency = FullSettings.Esp.Values.OutlineTransparency
  143. end
  144. end
  145. end
  146. end
  147. end)()
  148. end
  149.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement