Advertisement
Guest User

Vascal v3

a guest
Jun 1st, 2024
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local LocalPlayer = Players.LocalPlayer
  4. local Mouse = game.Players.LocalPlayer:GetMouse()
  5. local CamlockState = false
  6. local Prediction = 0.1433
  7. local HorizontalPrediction = 0.136
  8. local VerticalPrediction = 0.11034856
  9. local XPrediction = 20
  10. local YPrediction = 20
  11.  
  12. function FindNearestEnemy()
  13. local ClosestDistance, ClosestPlayer = math.huge, nil
  14. local CenterPosition =
  15. Vector2.new(
  16. game:GetService("GuiService"):GetScreenResolution().X / 2,
  17. game:GetService("GuiService"):GetScreenResolution().Y / 2
  18. )
  19.  
  20. for _, Player in ipairs(game:GetService("Players"):GetPlayers()) do
  21. if Player ~= LocalPlayer then
  22. local Character = Player.Character
  23. if Character and Character:FindFirstChild("HumanoidRootPart") and Character.Humanoid.Health > 0 then
  24. local Position, IsVisibleOnViewport =
  25. game:GetService("Workspace").CurrentCamera:WorldToViewportPoint(Character.HumanoidRootPart.Position)
  26.  
  27. if IsVisibleOnViewport then
  28. local Distance = (CenterPosition - Vector2.new(Position.X, Position.Y)).Magnitude
  29. if Distance < ClosestDistance then
  30. ClosestPlayer = Character.HumanoidRootPart
  31. ClosestDistance = Distance
  32. end
  33. end
  34. end
  35. end
  36. end
  37.  
  38. return ClosestPlayer
  39. end
  40.  
  41. local enemy = nil
  42. -- Function to aim the camera at the nearest enemy's HumanoidRootPart
  43. RunService.Heartbeat:Connect(
  44. function()
  45. if CamlockState == true then
  46. if enemy then
  47. local camera = workspace.CurrentCamera
  48. camera.CFrame = CFrame.new(camera.CFrame.p, enemy.Position + enemy.Velocity * Prediction)
  49. end
  50. end
  51. end
  52. )
  53.  
  54. local Vascal = Instance.new("ScreenGui")
  55. local Frame = Instance.new("Frame")
  56. local UICorner = Instance.new("UICorner")
  57. local Logo = Instance.new("ImageLabel")
  58. local TextButton = Instance.new("TextButton")
  59. local UICorner_2 = Instance.new("UICorner")
  60.  
  61. --Properties:
  62.  
  63. Vascal.Name = "Vascal"
  64. Vascal.Parent = game.CoreGui
  65. Vascal.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  66.  
  67. Frame.Parent = Vascal
  68. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  69. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  70. Frame.BorderSizePixel = 0
  71. Frame.Position = UDim2.new(0.133798108, 0, 0.20107238, 0)
  72. Frame.Size = UDim2.new(0, 202, 0, 70)
  73. Frame.Active = true
  74. Frame.Draggable = true
  75.  
  76. local function TopContainer()
  77. Frame.Position = UDim2.new(0.5, -Frame.AbsoluteSize.X / 2, 0, -Frame.AbsoluteSize.Y / 2)
  78. end
  79.  
  80. TopContainer()
  81. Frame:GetPropertyChangedSignal("AbsoluteSize"):Connect(TopContainer)
  82.  
  83. UICorner.Parent = Frame
  84.  
  85. Logo.Name = "Logo"
  86. Logo.Parent = Frame
  87. Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  88. Logo.BackgroundTransparency = 5.000
  89. Logo.BorderColor3 = Color3.fromRGB(0, 0, 0)
  90. Logo.BorderSizePixel = 0
  91. Logo.Position = UDim2.new(0.326732665, 0, 0, 0)
  92. Logo.Size = UDim2.new(0, 70, 0, 70)
  93. Logo.Image = "rbxassetid://7229442422"
  94. Logo.ImageTransparency = 0.200
  95.  
  96. TextButton.Parent = Frame
  97. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  98. TextButton.BackgroundTransparency = 5.000
  99. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  100. TextButton.BorderSizePixel = 0
  101. TextButton.Position = UDim2.new(0.0792079195, 0, 0.18571429, 0)
  102. TextButton.Size = UDim2.new(0, 170, 0, 44)
  103. TextButton.Font = Enum.Font.SourceSansSemibold
  104. TextButton.Text = "Toggle CamLock"
  105. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  106. TextButton.TextScaled = true
  107. TextButton.TextSize = 11.000
  108. TextButton.TextWrapped = true
  109. local state = true
  110. TextButton.MouseButton1Click:Connect(
  111. function()
  112. state = not state
  113. if not state then
  114. TextButton.Text = "Ace ON"
  115. CamlockState = true
  116. enemy = FindNearestEnemy()
  117. else
  118. TextButton.Text = "Vascal OFF"
  119. CamlockState = false
  120. enemy = nil
  121. end
  122. end
  123. )
  124.  
  125. UICorner_2.Parent = TextButton
  126.  
  127.  
  128. getgenv().Silent = {
  129. Settings = {
  130. Enabled = true,
  131. AimPart = "UpperTorso",
  132. Prediction = 0.1433,
  133. WallCheck = true,
  134. Visualize = true,
  135. AutoPrediction = true,
  136. },
  137. FOV = {
  138. Enabled = true,
  139. Size = 40,
  140. Filled = false,
  141. Thickness = 0.66,
  142. Transparency = 0.0,
  143. Color = Color3.fromRGB(255,255,255),
  144. },
  145. }
  146. loadstring(game:HttpGet("https://raw.githubusercontent.com/CyberPlaysYT/Aura-x-update/main/Aura%20x%20updated", true))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement