miguelscripts

rivals silent aim solara support 2025 pastebin

Feb 17th, 2025
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. -- I DO NOT OWN THIS SCRIPT
  2.  
  3. -- Services
  4. local Players = game:GetService("Players")
  5. local RunService = game:GetService("RunService")
  6. local UserInputService = game:GetService("UserInputService")
  7. local Workspace = game:GetService("Workspace")
  8. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  9. local Camera = Workspace.CurrentCamera
  10. local LocalPlayer = Players.LocalPlayer
  11.  
  12. -- Variables
  13. local silentAimActive = true
  14. local espActive = true
  15. local espList = {} -- Keep track of ESP drawings
  16.  
  17. -- Function to get the nearest target's head
  18. local function getNearestHead()
  19. local closestPlayer = nil
  20. local shortestDistance = math.huge
  21.  
  22. for _, player in pairs(Players:GetPlayers()) do
  23. if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  24. local distance = (player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
  25. if distance < shortestDistance then
  26. shortestDistance = distance
  27. closestPlayer = player
  28. end
  29. end
  30. end
  31.  
  32. if closestPlayer and closestPlayer.Character and closestPlayer.Character:FindFirstChild("Head") then
  33. return closestPlayer.Character.Head
  34. end
  35.  
  36. return nil
  37. end
  38.  
  39. -- Silent aim functionality with headshots
  40. UserInputService.InputBegan:Connect(function(input)
  41. if input.UserInputType == Enum.UserInputType.MouseButton1 and silentAimActive then
  42. local targetHead = getNearestHead()
  43. if targetHead then
  44. local aimPosition = targetHead.Position
  45. Camera.CFrame = CFrame.new(Camera.CFrame.Position, aimPosition)
  46. ReplicatedStorage.Remotes.Attack:FireServer(targetHead)
  47. end
  48. end
  49. end)
  50.  
  51. -- ESP Function for a player
  52. local function createESP(player)
  53. if player ~= LocalPlayer then
  54. local espBox = Drawing.new("Quad")
  55. espBox.Thickness = 2
  56. espBox.Color = Color3.fromRGB(0, 0, 255) -- Blue color for ESP
  57. espBox.Transparency = 1
  58. espBox.Visible = true
  59.  
  60. espList[player.Name] = espBox
  61.  
  62. RunService.RenderStepped:Connect(function()
  63. if espActive and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  64. local rootPart = player.Character.HumanoidRootPart
  65. local head = player.Character:FindFirstChild("Head")
  66.  
  67. if rootPart and head then
  68. local rootPos, rootVisible = Camera:WorldToViewportPoint(rootPart.Position)
  69. local headPos, headVisible = Camera:WorldToViewportPoint(head.Position + Vector3.new(0, 0.5, 0))
  70.  
  71. if rootVisible and headVisible then
  72. espBox.PointA = Vector2.new(rootPos.X - 15, rootPos.Y + 30)
  73. espBox.PointB = Vector2.new(rootPos.X + 15, rootPos.Y + 30)
  74. espBox.PointC = Vector2.new(headPos.X + 15, headPos.Y)
  75. espBox.PointD = Vector2.new(headPos.X - 15, headPos.Y)
  76. espBox.Visible = true
  77. else
  78. espBox.Visible = false
  79. end
  80. else
  81. espBox.Visible = false
  82. end
  83. else
  84. espBox.Visible = false
  85. end
  86. end)
  87. end
  88. end
  89.  
  90. for _, player in pairs(Players:GetPlayers()) do
  91. createESP(player)
  92. end
  93.  
  94. Players.PlayerAdded:Connect(function(player)
  95. createESP(player)
  96. end)
  97.  
  98. Players.PlayerRemoving:Connect(function(player)
  99. if espList[player.Name] then
  100. espList[player.Name]:Remove()
  101. espList[player.Name] = nil
  102. end
  103. end)
  104.  
  105. print("Silent Aim and ESP Script for Rivals loaded successfully.")
Advertisement
Add Comment
Please, Sign In to add comment