Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local ESPButton = Instance.new("TextButton")
- local AimbotButton = Instance.new("TextButton")
- local ScriptHint = Instance.new("TextLabel")
- -- Configuração da GUI
- ScreenGui.Parent = game.CoreGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- MainFrame.Size = UDim2.new(0, 300, 0, 200)
- MainFrame.Position = UDim2.new(0.35, 0, 0.3, 0)
- MainFrame.BorderSizePixel = 2
- MainFrame.Draggable = true
- MainFrame.Active = true
- Title.Parent = MainFrame
- Title.Text = "Script Hub"
- Title.Size = UDim2.new(1, 0, 0, 30)
- Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.Font = Enum.Font.GothamBold
- Title.TextSize = 18
- ESPButton.Parent = MainFrame
- ESPButton.Text = "ESP Line"
- ESPButton.Size = UDim2.new(0, 260, 0, 40)
- ESPButton.Position = UDim2.new(0.05, 0, 0.2, 0)
- ESPButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- ESPButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ESPButton.Font = Enum.Font.GothamBold
- ESPButton.TextSize = 16
- AimbotButton.Parent = MainFrame
- AimbotButton.Text = "Aimbot Line"
- AimbotButton.Size = UDim2.new(0, 260, 0, 40)
- AimbotButton.Position = UDim2.new(0.05, 0, 0.5, 0)
- AimbotButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- AimbotButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- AimbotButton.Font = Enum.Font.GothamBold
- AimbotButton.TextSize = 16
- ScriptHint.Parent = MainFrame
- ScriptHint.Text = "BY darker 9898"
- ScriptHint.Size = UDim2.new(1, 0, 0, 30)
- ScriptHint.Position = UDim2.new(0, 0, 0.8, 0)
- ScriptHint.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- ScriptHint.TextColor3 = Color3.fromRGB(255, 255, 255)
- ScriptHint.Font = Enum.Font.GothamBold
- ScriptHint.TextSize = 14
- -- Área para adicionar os scripts
- local function ESP_Line()
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local LocalPlayer = Players.LocalPlayer
- local Camera = workspace.CurrentCamera
- local ESPFolder = Instance.new("Folder", game.CoreGui)
- ESPFolder.Name = "ESP_Lines"
- local function CreateESPLine(player)
- if player == LocalPlayer then return end
- local line = Drawing.new("Line")
- line.Color = Color3.fromRGB(255, 0, 0) -- Cor da linha (vermelho)
- line.Thickness = 1
- line.Transparency = 1
- local function Update()
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- local rootPart = player.Character.HumanoidRootPart
- local screenPos, onScreen = Camera:WorldToViewportPoint(rootPart.Position)
- if onScreen then
- line.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
- line.To = Vector2.new(screenPos.X, screenPos.Y)
- line.Visible = true
- else
- line.Visible = false
- end
- else
- line.Visible = false
- end
- end
- local connection
- connection = RunService.RenderStepped:Connect(Update)
- player.CharacterRemoving:Connect(function()
- line:Remove()
- connection:Disconnect()
- end)
- end
- for _, player in pairs(Players:GetPlayers()) do
- CreateESPLine(player)
- end
- Players.PlayerAdded:Connect(CreateESPLine)
- print("ESP Line ativado!")
- end
- local function Aimbot_Line()
- -- Configurações
- local AimPart = "Head" -- Parte do corpo para mirar
- local LineColor = Color3.fromRGB(255, 0, 0) -- Cor da linha
- -- Variáveis
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Camera = game.Workspace.CurrentCamera
- local Target = nil
- local AimlockEnabled = false
- -- Criar interface do botão
- local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
- local AimlockButton = Instance.new("TextButton", ScreenGui)
- AimlockButton.Size = UDim2.new(0, 100, 0, 50)
- AimlockButton.Position = UDim2.new(0.8, 0, 0.8, 0)
- AimlockButton.Text = "Aimlock: OFF"
- AimlockButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- AimlockButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- AimlockButton.Font = Enum.Font.SourceSansBold
- AimlockButton.TextSize = 20
- AimlockButton.BorderSizePixel = 2
- -- Criar a linha
- local Beam = Instance.new("Beam", game.Workspace)
- local Attachment0 = Instance.new("Attachment", Camera)
- local Attachment1 = Instance.new("Attachment")
- Beam.Attachment0 = Attachment0
- Beam.Attachment1 = Attachment1
- Beam.Width0 = 0.1
- Beam.Width1 = 0.1
- Beam.Color = ColorSequence.new(LineColor)
- Beam.Enabled = false
- -- Função para encontrar o alvo mais próximo
- local function GetClosestPlayer()
- local closest, distance = nil, math.huge
- for _, player in pairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild(AimPart) then
- local part = player.Character[AimPart]
- local screenPos, onScreen = Camera:WorldToViewportPoint(part.Position)
- if onScreen then
- local magnitude = (Vector2.new(screenPos.X, screenPos.Y) - Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)).Magnitude
- if magnitude < distance then
- distance = magnitude
- closest = part
- end
- end
- end
- end
- return closest
- end
- -- Função para ativar/desativar o Aimlock
- local function ToggleAimlock()
- AimlockEnabled = not AimlockEnabled
- AimlockButton.Text = "Aimlock: " .. (AimlockEnabled and "ON" or "OFF")
- if AimlockEnabled then
- Target = GetClosestPlayer()
- if Target then
- Attachment1.Parent = Target
- Attachment1.Position = Vector3.new(0, 0, 0)
- Beam.Enabled = true
- end
- else
- Beam.Enabled = false
- Target = nil
- end
- end
- -- Conectar botão de toque ao Aimlock
- AimlockButton.MouseButton1Click:Connect(ToggleAimlock)
- -- Atualizar a mira no alvo
- game:GetService("RunService").RenderStepped:Connect(function()
- if AimlockEnabled and Target then
- Camera.CFrame = CFrame.new(Camera.CFrame.Position, Target.Position)
- end
- ESPButton.MouseButton1Click:Connect(ESP_Line)
- AimbotButton.MouseButton1Click:Connect(Aimbot_Line)
Advertisement
Add Comment
Please, Sign In to add comment