local   player = game.Players.
LocalPlayer
local   mouse = player:GetMouse()
local   aimlockKey = Enum.KeyCode.E
local   aimlockActive = false
local   target
-- GUI Elements
local screenGui = Instance.new("ScreenGui")
local frame = Instance.new("Frame")
local aimlockButton = Instance.new("TextButton")
local aimbotButton = Instance.new("TextButton")
local imageLabel = Instance.new("ImageLabel")
-- Setup Screen GUI
screenGui.Parent = player:WaitForChild("PlayerGui")
frame.Parent = screenGui
frame.Size = UDim2.new(0, 200, 0, 300)
frame.Position = UDim2.new(0.5, -100, 0.5, -150)
aimlockButton.Parent = frame
aimlockButton.Size = UDim2.new(0, 180, 0, 50)
aimlockButton.Position = UDim2.new(0, 10, 0, 10)
aimlockButton.Text = "Aimlock"
aimbotButton.Parent = frame
aimbotButton.Size = UDim2.new(0, 180, 0, 50)
aimbotButton.Position = UDim2.new(0, 10, 0, 70)
aimbotButton.Text = "Aimbot"
imageLabel.Parent = screenGui
imageLabel.Size = UDim2.new(0, 200, 0, 200)
imageLabel.Position = UDim2.new(0.5, -100, 0.5, -100)
imageLabel.Image = "rbxassetid://<YourImageAssetID>"
imageLabel.Visible = false
-- Toggle Menu
local function onKeyPress(input)
    if input.KeyCode == aimlockKey then
        frame.Visible = not frame.Visible
    end
end
aimlockButton.MouseButton1Click:Connect(function()
     aimlockActive = not aimlockActive
     imageLabel.Visible = aimlockActive
     print("Aimlock " .. (aimlockActive and "Activated" or "Deactivated"))
end)
aimbotButton.MouseButton1Click:Connect(function()
     print("Aimbot Activated")
end)
local function onUpdate()
    if aimlockActive then
        target = mouse.Target
        if target and target.Parent:FindFirstChild("Humanoid") then
            local character = target.Parent
            local torso = character:FindFirstChild("Torso") or
character:FindFirstChild("UpperTorso")
            if torso then
                mouse.Icon = "rbxassetid://1234567890" -- Change mouse icon
                mouse.TargetFilter = character
                mouse.Hit = CFrame.new(torso.Position)
                        -- Draw lines to players
                        local line = Drawing.new("Line")
                        line.Visible = true
                        line.From = player.Character.HumanoidRootPart.Position
                        line.To = torso.Position
                        line.Color = Color3.new(1, 0, 0)
                        line.Thickness = 2
                  end
            else
                  mouse.Icon = ""
                  mouse.TargetFilter = nil
            end
      else
            mouse.Icon = ""
            mouse.TargetFilter = nil
      end
end
-- Connect functions to game events
game:GetService("UserInputService").InputBegan:Connect(onKeyPress)
game:GetService("RunService").RenderStepped:Connect(onUpdate)