Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local LocalPlayer = Players.LocalPlayer
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local CamlockState = false
- local Prediction = 0.1433
- local HorizontalPrediction = 0.136
- local VerticalPrediction = 0.11034856
- local XPrediction = 20
- local YPrediction = 20
- function FindNearestEnemy()
- local ClosestDistance, ClosestPlayer = math.huge, nil
- local CenterPosition =
- Vector2.new(
- game:GetService("GuiService"):GetScreenResolution().X / 2,
- game:GetService("GuiService"):GetScreenResolution().Y / 2
- )
- for _, Player in ipairs(game:GetService("Players"):GetPlayers()) do
- if Player ~= LocalPlayer then
- local Character = Player.Character
- if Character and Character:FindFirstChild("HumanoidRootPart") and Character.Humanoid.Health > 0 then
- local Position, IsVisibleOnViewport =
- game:GetService("Workspace").CurrentCamera:WorldToViewportPoint(Character.HumanoidRootPart.Position)
- if IsVisibleOnViewport then
- local Distance = (CenterPosition - Vector2.new(Position.X, Position.Y)).Magnitude
- if Distance < ClosestDistance then
- ClosestPlayer = Character.HumanoidRootPart
- ClosestDistance = Distance
- end
- end
- end
- end
- end
- return ClosestPlayer
- end
- local enemy = nil
- -- Function to aim the camera at the nearest enemy's HumanoidRootPart
- RunService.Heartbeat:Connect(
- function()
- if CamlockState == true then
- if enemy then
- local camera = workspace.CurrentCamera
- camera.CFrame = CFrame.new(camera.CFrame.p, enemy.Position + enemy.Velocity * Prediction)
- end
- end
- end
- )
- local Vascal = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local UICorner = Instance.new("UICorner")
- local Logo = Instance.new("ImageLabel")
- local TextButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- --Properties:
- Vascal.Name = "Vascal"
- Vascal.Parent = game.CoreGui
- Vascal.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = Vascal
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.133798108, 0, 0.20107238, 0)
- Frame.Size = UDim2.new(0, 202, 0, 70)
- Frame.Active = true
- Frame.Draggable = true
- local function TopContainer()
- Frame.Position = UDim2.new(0.5, -Frame.AbsoluteSize.X / 2, 0, -Frame.AbsoluteSize.Y / 2)
- end
- TopContainer()
- Frame:GetPropertyChangedSignal("AbsoluteSize"):Connect(TopContainer)
- UICorner.Parent = Frame
- Logo.Name = "Logo"
- Logo.Parent = Frame
- Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Logo.BackgroundTransparency = 5.000
- Logo.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Logo.BorderSizePixel = 0
- Logo.Position = UDim2.new(0.326732665, 0, 0, 0)
- Logo.Size = UDim2.new(0, 70, 0, 70)
- Logo.Image = "rbxassetid://7229442422"
- Logo.ImageTransparency = 0.200
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BackgroundTransparency = 5.000
- TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0.0792079195, 0, 0.18571429, 0)
- TextButton.Size = UDim2.new(0, 170, 0, 44)
- TextButton.Font = Enum.Font.SourceSansSemibold
- TextButton.Text = "Toggle CamLock"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextScaled = true
- TextButton.TextSize = 11.000
- TextButton.TextWrapped = true
- local state = true
- TextButton.MouseButton1Click:Connect(
- function()
- state = not state
- if not state then
- TextButton.Text = "Ace ON"
- CamlockState = true
- enemy = FindNearestEnemy()
- else
- TextButton.Text = "Vascal OFF"
- CamlockState = false
- enemy = nil
- end
- end
- )
- UICorner_2.Parent = TextButton
- getgenv().Silent = {
- Settings = {
- Enabled = true,
- AimPart = "UpperTorso",
- Prediction = 0.1433,
- WallCheck = true,
- Visualize = true,
- AutoPrediction = true,
- },
- FOV = {
- Enabled = true,
- Size = 40,
- Filled = false,
- Thickness = 0.66,
- Transparency = 0.0,
- Color = Color3.fromRGB(255,255,255),
- },
- }
- 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