local Player = game:GetService("Players").LocalPlayer local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local VirtualUser = game:GetService("VirtualUser") -- Added for Anti-AFK local Camera = workspace.CurrentCamera local Toggle = false local AntiAFK = false -- Added state local Speed = 150 local LockY = nil local Running = true local Connections = {} -- MAIN UI SETUP local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "lixv1zHUB_UI" ScreenGui.Parent = Player:WaitForChild("PlayerGui") ScreenGui.ResetOnSpawn = false local function Shutdown() Running = false Toggle = false for _, conn in pairs(Connections) do conn:Disconnect() end ScreenGui:Destroy() end -- [[ LOADING SCREEN ]] -- local LoadingFrame = Instance.new("Frame") LoadingFrame.Size = UDim2.new(1, 0, 1, 0) LoadingFrame.BackgroundColor3 = Color3.fromRGB(2, 2, 8) LoadingFrame.BorderSizePixel = 0 LoadingFrame.ZIndex = 100 LoadingFrame.Parent = ScreenGui for i = 1, 150 do local star = Instance.new("Frame") star.Size = UDim2.new(0, math.random(2, 4), 0, math.random(2, 4)) star.Position = UDim2.new(math.random(), 0, math.random(), 0) star.BackgroundColor3 = Color3.new(1, 1, 1) star.BorderSizePixel = 0 star.ZIndex = 101 star.Parent = LoadingFrame Instance.new("UICorner", star).CornerRadius = UDim.new(1, 0) end local CometContainer = Instance.new("Frame") CometContainer.Size = UDim2.new(0, 700, 0, 150) CometContainer.Position = UDim2.new(-0.8, 0, 0.4, 0) CometContainer.BackgroundTransparency = 1 CometContainer.Rotation = 10 CometContainer.ZIndex = 102 CometContainer.Parent = LoadingFrame local Trail = Instance.new("Frame") Trail.Size = UDim2.new(1, 0, 0, 60) Trail.Position = UDim2.new(-1, 0, 0.5, -30) Trail.BackgroundColor3 = Color3.fromRGB(0, 180, 255) Trail.BorderSizePixel = 0 Trail.ZIndex = 102 Trail.Parent = CometContainer local TrailGrad = Instance.new("UIGradient", Trail) TrailGrad.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) local Head = Instance.new("Frame") Head.Size = UDim2.new(0, 120, 0, 120) Head.Position = UDim2.new(0, 0, 0.5, -60) Head.BackgroundColor3 = Color3.fromRGB(150, 230, 255) Head.BorderSizePixel = 0 Head.ZIndex = 104 Head.Parent = CometContainer Instance.new("UICorner", Head).CornerRadius = UDim.new(1, 0) local Glow = Instance.new("ImageLabel") Glow.Size = UDim2.new(3, 0, 3, 0) Glow.Position = UDim2.new(-1, 0, -1, 0) Glow.BackgroundTransparency = 1 Glow.Image = "rbxassetid://6015531038" Glow.ImageColor3 = Color3.fromRGB(0, 100, 255) Glow.ZIndex = 103 Glow.Parent = Head local LoadingText = Instance.new("TextLabel") LoadingText.Size = UDim2.new(1, 0, 0, 100) LoadingText.Position = UDim2.new(0, 0, 0.5, -50) LoadingText.Text = "lixv1zHUB" LoadingText.Font = Enum.Font.FredokaOne LoadingText.TextColor3 = Color3.new(1, 1, 1) LoadingText.TextSize = 100 LoadingText.BackgroundTransparency = 1 LoadingText.ZIndex = 105 LoadingText.Parent = LoadingFrame -- [[ KEY SYSTEM ]] -- local KeyFrame = Instance.new("Frame") KeyFrame.Size = UDim2.new(0, 340, 0, 220) KeyFrame.Position = UDim2.new(0.5, -170, 0.4, 0) KeyFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 15) KeyFrame.BorderSizePixel = 0 KeyFrame.Visible = false KeyFrame.ZIndex = 200 KeyFrame.Parent = ScreenGui Instance.new("UICorner", KeyFrame).CornerRadius = UDim.new(0, 12) local KeyStroke = Instance.new("UIStroke") KeyStroke.Thickness = 2 KeyStroke.Color = Color3.fromRGB(0, 150, 255) KeyStroke.Parent = KeyFrame local KeyTitle = Instance.new("TextLabel") KeyTitle.Size = UDim2.new(1, 0, 0, 60) KeyTitle.Text = "ACCESS KEY" KeyTitle.TextColor3 = Color3.fromRGB(0, 180, 255) KeyTitle.BackgroundTransparency = 1 KeyTitle.Font = Enum.Font.GothamBold KeyTitle.TextSize = 24 KeyTitle.ZIndex = 201 KeyTitle.Parent = KeyFrame local KeyInput = Instance.new("TextBox") KeyInput.Size = UDim2.new(0, 280, 0, 50) KeyInput.Position = UDim2.new(0.5, -140, 0, 75) KeyInput.PlaceholderText = "Paste Key..." KeyInput.Text = "" KeyInput.BackgroundColor3 = Color3.fromRGB(20, 20, 25) KeyInput.TextColor3 = Color3.new(1, 1, 1) KeyInput.Font = Enum.Font.Code KeyInput.TextSize = 18 KeyInput.ZIndex = 201 KeyInput.Parent = KeyFrame Instance.new("UICorner", KeyInput) local InputStroke = Instance.new("UIStroke") InputStroke.Color = Color3.fromRGB(50, 50, 60) InputStroke.Parent = KeyInput local CheckBtn = Instance.new("TextButton") CheckBtn.Size = UDim2.new(0, 280, 0, 50) CheckBtn.Position = UDim2.new(0.5, -140, 0, 140) CheckBtn.Text = "VERIFY" CheckBtn.BackgroundColor3 = Color3.fromRGB(0, 100, 255) CheckBtn.TextColor3 = Color3.new(1, 1, 1) CheckBtn.Font = Enum.Font.GothamBold CheckBtn.TextSize = 16 CheckBtn.ZIndex = 201 CheckBtn.Parent = KeyFrame Instance.new("UICorner", CheckBtn) local KeyClose = Instance.new("TextButton") KeyClose.Size = UDim2.new(0, 25, 0, 25) KeyClose.Position = UDim2.new(1, -30, 0, 5) KeyClose.Text = "X" KeyClose.TextColor3 = Color3.new(1, 0, 0) KeyClose.BackgroundTransparency = 1 KeyClose.Font = Enum.Font.GothamBold KeyClose.TextSize = 18 KeyClose.ZIndex = 202 KeyClose.Parent = KeyFrame KeyClose.MouseButton1Click:Connect(Shutdown) -- [[ MAIN MENU ]] -- local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0, 280, 0, 310) -- Height increased for extra button MainFrame.Position = UDim2.new(0.5, -140, 0.4, 0) MainFrame.BackgroundColor3 = Color3.fromRGB(12, 12, 12) MainFrame.BackgroundTransparency = 0.2 MainFrame.Visible = false MainFrame.Parent = ScreenGui Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 15) local MainStroke = Instance.new("UIStroke") MainStroke.Thickness = 1.5 MainStroke.Color = Color3.fromRGB(0, 120, 255) MainStroke.Parent = MainFrame local CloseBtn = Instance.new("TextButton") CloseBtn.Size = UDim2.new(0, 30, 0, 30) CloseBtn.Position = UDim2.new(1, -35, 0, 5) CloseBtn.Text = "X" CloseBtn.TextColor3 = Color3.new(1, 0.2, 0.2) CloseBtn.BackgroundTransparency = 1 CloseBtn.Font = Enum.Font.GothamBold CloseBtn.TextSize = 20 CloseBtn.Parent = MainFrame CloseBtn.MouseButton1Click:Connect(Shutdown) local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, 0, 0, 60) Title.Text = "lixv1zHUB" Title.TextColor3 = Color3.new(1, 1, 1) Title.BackgroundTransparency = 1 Title.Font = Enum.Font.GothamBold Title.TextSize = 28 Title.Parent = MainFrame local FarmBtn = Instance.new("TextButton") FarmBtn.Size = UDim2.new(0, 240, 0, 50) FarmBtn.Position = UDim2.new(0.5, -120, 0, 70) FarmBtn.Text = "START AUTOFARM" FarmBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) FarmBtn.TextColor3 = Color3.new(1, 1, 1) FarmBtn.Font = Enum.Font.GothamBold FarmBtn.TextSize = 16 FarmBtn.Parent = MainFrame Instance.new("UICorner", FarmBtn) -- ANTI-AFK BUTTON local AntiBtn = Instance.new("TextButton") AntiBtn.Size = UDim2.new(0, 240, 0, 50) AntiBtn.Position = UDim2.new(0.5, -120, 0, 130) AntiBtn.Text = "ANTI-AFK: OFF" AntiBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 45) AntiBtn.TextColor3 = Color3.new(1, 1, 1) AntiBtn.Font = Enum.Font.GothamBold AntiBtn.TextSize = 16 AntiBtn.Parent = MainFrame Instance.new("UICorner", AntiBtn) local SpeedInput = Instance.new("TextBox") SpeedInput.Size = UDim2.new(0, 240, 0, 45) SpeedInput.Position = UDim2.new(0.5, -120, 0, 195) SpeedInput.Text = "150" SpeedInput.BackgroundColor3 = Color3.fromRGB(25, 25, 25) SpeedInput.TextColor3 = Color3.new(1, 1, 1) SpeedInput.Font = Enum.Font.Code SpeedInput.TextSize = 24 SpeedInput.Parent = MainFrame Instance.new("UICorner", SpeedInput) local Hint = Instance.new("TextLabel") Hint.Size = UDim2.new(1, 0, 0, 20) Hint.Position = UDim2.new(0, 0, 1, -25) Hint.Text = "[R-SHIFT] HIDE | X CLOSE" Hint.BackgroundTransparency = 1 Hint.TextColor3 = Color3.fromRGB(120, 120, 120) Hint.Font = Enum.Font.Gotham Hint.TextSize = 11 Hint.Parent = MainFrame -- [[ LOGIC & SYSTEMS ]] -- -- Anti-AFK Logic table.insert(Connections, Player.Idled:Connect(function() if AntiAFK then VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end end)) AntiBtn.MouseButton1Click:Connect(function() AntiAFK = not AntiAFK AntiBtn.Text = AntiAFK and "ANTI-AFK: ON" or "ANTI-AFK: OFF" AntiBtn.BackgroundColor3 = AntiAFK and Color3.fromRGB(0, 180, 80) or Color3.fromRGB(40, 40, 45) end) -- Animation Sequence task.spawn(function() local oldCamType = Camera.CameraType Camera.CameraType = Enum.CameraType.Scriptable TweenService:Create(CometContainer, TweenInfo.new(3.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {Position = UDim2.new(1.5, 0, 0.6, 0)}):Play() Camera.CFrame = CFrame.new(0, 50, 100) TweenService:Create(Camera, TweenInfo.new(3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = Camera.CFrame * CFrame.new(100, -20, -50)}):Play() task.wait(3) Camera.CameraType = oldCamType local fadeOut = TweenService:Create(LoadingFrame, TweenInfo.new(0.8), {BackgroundTransparency = 1}) TweenService:Create(LoadingText, TweenInfo.new(0.8), {TextTransparency = 1}):Play() for _, v in pairs(LoadingFrame:GetDescendants()) do if v:IsA("Frame") then TweenService:Create(v, TweenInfo.new(0.8), {BackgroundTransparency = 1}):Play() elseif v:IsA("ImageLabel") then TweenService:Create(v, TweenInfo.new(0.8), {ImageTransparency = 1}):Play() end end fadeOut:Play() fadeOut.Completed:Wait() LoadingFrame:Destroy() if Running then KeyFrame.Visible = true end end) CheckBtn.MouseButton1Click:Connect(function() if KeyInput.Text == "NEWSCRIPTER" then KeyFrame:Destroy() MainFrame.Visible = true else KeyInput.Text = "" KeyInput.PlaceholderText = "WRONG KEY!" InputStroke.Color = Color3.fromRGB(255, 0, 0) task.wait(1.5) KeyInput.PlaceholderText = "Paste Key..." InputStroke.Color = Color3.fromRGB(50, 50, 60) end end) -- Dragging local dragging, dragInput, dragStart, startPos local function setupDrag(obj) obj.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = obj.Position end end) UserInputService.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart obj.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) end setupDrag(MainFrame) setupDrag(KeyFrame) table.insert(Connections, UserInputService.InputBegan:Connect(function(input, gpe) if not gpe and input.KeyCode == Enum.KeyCode.RightShift then MainFrame.Visible = not MainFrame.Visible end end)) SpeedInput.FocusLost:Connect(function() local val = tonumber(SpeedInput.Text) if val then Speed = val else SpeedInput.Text = tostring(Speed) end end) local function findMySeat() local char = Player.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not hrp then return nil end for _, v in pairs(workspace:GetDescendants()) do if v:IsA("VehicleSeat") and (v.Position - hrp.Position).Magnitude < 50 then return v end end end table.insert(Connections, RunService.Stepped:Connect(function() if Toggle and Player.Character then for _, part in pairs(Player.Character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end local seat = findMySeat() if seat and seat.Parent then for _, part in pairs(seat.Parent:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end end end)) table.insert(Connections, RunService.Heartbeat:Connect(function() if not Toggle or not Running then return end local char = Player.Character local hum = char and char:FindFirstChild("Humanoid") local hrp = char and char:FindFirstChild("HumanoidRootPart") local seat = findMySeat() if seat and hrp and hum then if hum.SeatPart ~= seat then seat:Sit(hum) end if not LockY then LockY = seat.Position.Y end seat.CFrame = CFrame.new(seat.Position.X, LockY, seat.Position.Z) * CFrame.Angles(0, math.rad(seat.Orientation.Y), 0) seat.AssemblyLinearVelocity = seat.CFrame.LookVector * Speed seat.AssemblyAngularVelocity = Vector3.new(0, 0, 0) end end)) FarmBtn.MouseButton1Click:Connect(function() Toggle = not Toggle if Toggle then FarmBtn.Text = "FARM: ON" FarmBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 0) else FarmBtn.Text = "START AUTOFARM" FarmBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) LockY = nil end end)