--[[ Venice FPS — ESP + RMB aimbot Menu: RightShift | ESP toggle: RightCtrl | Aim: hold RMB (or Q) V = mark player under cursor as teammate | B = clear marks Teammates excluded from ESP and aim. Auto fire alternates press/release every frame while locked. ]] print("[Venice] boot 1/8") if getgenv().VeniceESP_Unload then pcall(getgenv().VeniceESP_Unload) end local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local LP = Players.LocalPlayer local Cam = workspace.CurrentCamera local HAS_DRAWING = false pcall(function() local t = Drawing.new("Square") HAS_DRAWING = t ~= nil t:Remove() end) if not HAS_DRAWING then return warn("[Venice] No Drawing API on this executor.") end local mousemoverel = getgenv().mousemoverel or mousemoverel local HAS_MOUSEMOVE = type(mousemoverel) == "function" local CFG = { enabled = true, boxes = true, names = true, distance = true, health = true, tracers = false, hideDead = true, maxDist = 2000, color = Color3.fromRGB(0, 210, 255), teamColor = true, allyDist = 15, aim = { enabled = true, speed = 50, fov = 250, sens = 150, mode = "auto", -- auto | mouse | hook | cframe wallCheck = false, prediction = false, circle = true, hook = false, autoFire = true, click = "auto", -- auto | mouse | vim | press | vu }, } local tracked, conns = {}, {} local rmbDown = false local activeHead = nil local candCount = 0 local aimMode = "cframe" local aiming = false local lastDt = 1/60 local savedCamType = nil local fireActive = false local fireCheck = 0 local btnDown = false local fireCount = 0 local forced = {} local plrTeam = {} local myTeam = nil local colorMode = false local teamSource = "spawn" local teamClock = 0 local mySpawn = nil local spawnPos = {} local spawnTeam = {} local clusterValid = false local applyMode, stopAim, rescanSpawns, dumpTeams, rebuildSpawnTeam, rebuildClicker local function guiParent() local ok, h = pcall(gethui) if ok and h then return h end local ok2, cg = pcall(function() return game:GetService("CoreGui") end) if ok2 and cg then return cg end return LP:WaitForChild("PlayerGui") end local function mk(class, props) local d = Drawing.new(class) for k, v in pairs(props) do d[k] = v end return d end local function kill(d) if d then pcall(function() d.Visible = false; d:Remove() end) end end --// ===== MENU ===== local gui = Instance.new("ScreenGui") gui.Name = "VeniceFPS" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.DisplayOrder = 999 local function placeGui(target) local parent = target if not parent then local ok, p = pcall(guiParent) if ok and p then parent = p end end if not parent then return false end return pcall(function() gui.Parent = parent end) end if not placeGui() then pcall(function() gui.Parent = LP:WaitForChild("PlayerGui") end) end gui.Enabled = true local frame = Instance.new("Frame") frame.Size = UDim2.fromOffset(240, 520) frame.Position = UDim2.fromOffset(60, 80) frame.BackgroundColor3 = Color3.fromRGB(18, 18, 22) frame.BorderSizePixel = 0 frame.Visible = true frame.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = frame local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(0, 210, 255) stroke.Thickness = 1 stroke.Transparency = 0.4 stroke.Parent = frame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundColor3 = Color3.fromRGB(24, 24, 30) title.BorderSizePixel = 0 title.Text = " VENICE FPS [RMB AIM]" title.TextColor3 = Color3.fromRGB(0, 210, 255) title.TextSize = 13 title.Font = Enum.Font.GothamBold title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = frame local tc = Instance.new("UICorner") tc.CornerRadius = UDim.new(0, 8) tc.Parent = title local holder = Instance.new("ScrollingFrame") holder.Size = UDim2.new(1, -16, 1, -46) holder.Position = UDim2.fromOffset(8, 38) holder.BackgroundTransparency = 1 holder.BorderSizePixel = 0 holder.ScrollBarThickness = 3 holder.CanvasSize = UDim2.new() holder.AutomaticCanvasSize = Enum.AutomaticSize.Y holder.Parent = frame local layout = Instance.new("UIListLayout") layout.Padding = UDim.new(0, 4) layout.SortOrder = Enum.SortOrder.LayoutOrder layout.Parent = holder local function row(text, get, set) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 26) btn.BackgroundColor3 = Color3.fromRGB(28, 28, 34) btn.BorderSizePixel = 0 btn.AutoButtonColor = false btn.Font = Enum.Font.Gotham btn.TextSize = 12 btn.TextXAlignment = Enum.TextXAlignment.Left btn.Parent = holder local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 5) c.Parent = btn local function paint() btn.TextColor3 = get() and Color3.fromRGB(0, 230, 140) or Color3.fromRGB(150, 150, 155) btn.Text = " " .. (get() and "[x] " or "[ ] ") .. text end btn.MouseButton1Click:Connect(function() set(not get()); paint() end) paint() return btn end local function actionRow(text, fn) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 24) btn.BackgroundColor3 = Color3.fromRGB(34, 34, 42) btn.BorderSizePixel = 0 btn.AutoButtonColor = false btn.Font = Enum.Font.Gotham btn.TextSize = 11 btn.TextXAlignment = Enum.TextXAlignment.Left btn.TextColor3 = Color3.fromRGB(0, 210, 255) btn.Text = " " .. text btn.Parent = holder local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 5) c.Parent = btn btn.MouseButton1Click:Connect(fn) return btn end local function cycleRow(text, options, get, set) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 26) btn.BackgroundColor3 = Color3.fromRGB(28, 28, 34) btn.BorderSizePixel = 0 btn.AutoButtonColor = false btn.Font = Enum.Font.Gotham btn.TextSize = 12 btn.TextXAlignment = Enum.TextXAlignment.Left btn.Parent = holder local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 5) c.Parent = btn local function paint() btn.TextColor3 = Color3.fromRGB(0, 210, 255) btn.Text = " " .. text .. ": " .. string.upper(tostring(get())) end btn.MouseButton1Click:Connect(function() local cur = get() local idx = 1 for i, o in ipairs(options) do if o == cur then idx = i break end end set(options[idx % #options + 1]) paint() end) paint() return btn end local function header(text) local l = Instance.new("TextLabel") l.Size = UDim2.new(1, 0, 0, 20) l.BackgroundTransparency = 1 l.Font = Enum.Font.GothamBold l.TextSize = 11 l.TextXAlignment = Enum.TextXAlignment.Left l.TextColor3 = Color3.fromRGB(0, 210, 255) l.Text = " " .. text l.Parent = holder return l end local function slider(text, min, max, get, set) local w2 = Instance.new("Frame") w2.Size = UDim2.new(1, 0, 0, 32) w2.BackgroundTransparency = 1 w2.Parent = holder local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(1, 0, 0, 14) lbl.BackgroundTransparency = 1 lbl.Font = Enum.Font.Gotham lbl.TextSize = 11 lbl.TextXAlignment = Enum.TextXAlignment.Left lbl.TextColor3 = Color3.fromRGB(170, 170, 175) lbl.Parent = w2 local bar = Instance.new("Frame") bar.Size = UDim2.new(1, 0, 0, 12) bar.Position = UDim2.fromOffset(0, 16) bar.BackgroundColor3 = Color3.fromRGB(30, 30, 36) bar.BorderSizePixel = 0 bar.Parent = w2 local bc = Instance.new("UICorner"); bc.CornerRadius = UDim.new(0, 4); bc.Parent = bar local fill = Instance.new("Frame") fill.Size = UDim2.new(0, 0, 1, 0) fill.BackgroundColor3 = Color3.fromRGB(0, 210, 255) fill.BorderSizePixel = 0 fill.Parent = bar local fc = Instance.new("UICorner"); fc.CornerRadius = UDim.new(0, 4); fc.Parent = fill local function paint() local pct = (get() - min) / (max - min) fill.Size = UDim2.fromScale(math.clamp(pct, 0, 1), 1) lbl.Text = string.format("%s: %d", text, math.floor(get())) end local dragging = false local function setFromX(x) local pct = math.clamp((x - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, 0, 1) set(math.floor(min + pct * (max - min))) paint() end bar.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true; setFromX(i.Position.X) end end) table.insert(conns, UIS.InputChanged:Connect(function(i) if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then setFromX(i.Position.X) end end)) table.insert(conns, UIS.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end)) paint() return w2 end header("VISUALS") local enabledRow enabledRow = row("Enabled", function() return CFG.enabled end, function(v) CFG.enabled = v end) row("Boxes", function() return CFG.boxes end, function(v) CFG.boxes = v end) row("Names", function() return CFG.names end, function(v) CFG.names = v end) row("Distance", function() return CFG.distance end, function(v) CFG.distance = v end) row("Health Bar", function() return CFG.health end, function(v) CFG.health = v end) row("Tracers", function() return CFG.tracers end, function(v) CFG.tracers = v end) row("Team Colors", function() return CFG.teamColor end, function(v) CFG.teamColor = v end) header("AIM") row("Aimbot", function() return CFG.aim.enabled end, function(v) CFG.aim.enabled = v end) cycleRow("Method", {"auto", "mouse", "hook", "cframe"}, function() return CFG.aim.mode end, function(v) CFG.aim.mode = v if aiming and stopAim then stopAim(); aiming = false end if applyMode then pcall(applyMode) end end) row("Wall Check", function() return CFG.aim.wallCheck end, function(v) CFG.aim.wallCheck = v end) row("Prediction", function() return CFG.aim.prediction end, function(v) CFG.aim.prediction = v end) row("FOV Circle", function() return CFG.aim.circle end, function(v) CFG.aim.circle = v end) row("Auto Fire", function() return CFG.aim.autoFire end, function(v) CFG.aim.autoFire = v end) cycleRow("Trigger", {"auto", "mouse", "vim", "press", "vu"}, function() return CFG.aim.click end, function(v) CFG.aim.click = v if rebuildClicker then pcall(rebuildClicker) end end) header("TEAM") actionRow("Rescan spawns (press on spawn)", function() if rescanSpawns then pcall(rescanSpawns) end end) actionRow("Clear marks", function() forced = {} print("[Venice] teammate marks cleared") end) actionRow("Dump to console", function() if dumpTeams then pcall(dumpTeams) end end) local status = Instance.new("TextLabel") status.Size = UDim2.new(1, 0, 0, 16) status.BackgroundTransparency = 1 status.Font = Enum.Font.Gotham status.TextSize = 11 status.TextXAlignment = Enum.TextXAlignment.Left status.TextColor3 = Color3.fromRGB(130, 130, 140) status.Text = " idle" status.Parent = holder slider("FOV", 20, 600, function() return CFG.aim.fov end, function(v) CFG.aim.fov = v end) slider("Speed", 1, 100, function() return CFG.aim.speed end, function(v) CFG.aim.speed = v end) slider("Sens", 10, 400, function() return CFG.aim.sens end, function(v) CFG.aim.sens = v end) slider("Spawn Link", 5, 250, function() return CFG.allyDist end, function(v) CFG.allyDist = v if rebuildSpawnTeam then pcall(rebuildSpawnTeam) end end) print("[Venice] boot 2/8 — menu built") task.delay(1, function() if frame.AbsoluteSize.X < 10 then pcall(function() gui.Parent = LP:WaitForChild("PlayerGui") end) print("[Venice] GUI re-parented to PlayerGui") end end) --// ===== ESP HELPERS ===== local function recFor(plr) local r = tracked[plr] if r then return r end r = { conns = {} } tracked[plr] = r return r end local function ensure(rec) if rec.box then return true end local ok = pcall(function() rec.box = mk("Square", {Thickness = 1, Filled = false, Visible = false}) rec.hbg = mk("Line", {Thickness = 4, Visible = false}) rec.hfill = mk("Line", {Thickness = 4, Visible = false}) rec.name = mk("Text", {Size = 13, Center = true, Outline = true, Visible = false}) rec.dist = mk("Text", {Size = 12, Center = true, Outline = true, Visible = false}) rec.trace = mk("Line", {Thickness = 1, Visible = false}) end) return ok and rec.box ~= nil end local function hide(rec) for _, k in ipairs({"box","hbg","hfill","name","dist","trace"}) do if rec[k] then rec[k].Visible = false end end end local function destroy(rec) for _, k in ipairs({"box","hbg","hfill","name","dist","trace"}) do kill(rec[k]) end end local function project(v3) local sp = Cam:WorldToViewportPoint(v3) if sp.Z <= 0 then return nil end return Vector2.new(sp.X, sp.Y) end local function screenBox(char) local ok, cf, size = pcall(function() local c, s = char:GetBoundingBox() return c, s end) if not ok or not cf or size.Magnitude < 1 then return nil end local h = size * 0.5 local minX, minY, maxX, maxY = math.huge, math.huge, -math.huge, -math.huge local hits = 0 for _, sx in ipairs({1, -1}) do for _, sy in ipairs({1, -1}) do for _, sz in ipairs({1, -1}) do local p = project(cf * Vector3.new(h.X*sx, h.Y*sy, h.Z*sz)) if p then hits = hits + 1 minX = math.min(minX, p.X); maxX = math.max(maxX, p.X) minY = math.min(minY, p.Y); maxY = math.max(maxY, p.Y) end end end end if hits < 2 then return nil end return Vector2.new(minX, minY), Vector2.new(maxX, maxY) end --// ===== TEAM RESOLUTION ===== local TEAM_KEYS = { "Team", "TeamId", "TeamName", "TeamIndex", "TeamNumber", "team", "teamId", "teamName", "teamIndex", } local TEAM_CHILDREN = {"Team", "TeamId", "TeamName", "TeamIndex"} local LS_NAMES = {"Team", "TeamName", "Squad", "Side", "Faction"} local function probe(inst) if not inst then return nil end for _, k in ipairs(TEAM_KEYS) do local ok, v = pcall(function() return inst:GetAttribute(k) end) if ok and v ~= nil then return tostring(v) end end for _, n in ipairs(TEAM_CHILDREN) do local c = inst:FindFirstChild(n) if c and c:IsA("ValueBase") then return tostring(c.Value) end end return nil end local function rawTeam(plr) local t = plr.Team if t then return "team:" .. t.Name end local ls = plr:FindFirstChild("leaderstats") if ls then for _, n in ipairs(LS_NAMES) do local v = ls:FindFirstChild(n) if v and v:IsA("ValueBase") then return "ls:" .. tostring(v.Value) end end end local a = probe(plr) if a then return "attr:" .. a end local b = probe(plr.Character) if b then return "char:" .. b end return nil end function rebuildSpawnTeam() spawnTeam = {} clusterValid = false if not mySpawn then return end local list = {} for p, pos in pairs(spawnPos) do if p ~= LP then list[#list + 1] = {plr = p, d = (pos - mySpawn).Magnitude} end end if #list < 2 then return end table.sort(list, function(a, b) return a.d < b.d end) local half = math.max(1, math.floor(#list / 2)) local cut, bestGap = #list, 0 for i = 1, half - 1 do local g = list[i + 1].d - list[i].d if g > bestGap then bestGap, cut = g, i end end if bestGap < CFG.allyDist * 0.75 then cut = #list end for i = 1, math.min(cut, #list) do if list[i].d <= CFG.allyDist then spawnTeam[list[i].plr] = true end end clusterValid = true end local function recordSpawn(plr) task.spawn(function() local char = plr.Character if not char then return end local hrp = char:FindFirstChild("HumanoidRootPart") if not hrp then hrp = char:WaitForChild("HumanoidRootPart", 3) end if not hrp then return end task.wait(0.4) if plr.Character ~= char then return end spawnPos[plr] = hrp.Position pcall(rebuildSpawnTeam) end) end function rescanSpawns() spawnPos = {} spawnTeam = {} clusterValid = false mySpawn = nil task.spawn(function() local char = LP.Character if not char then return end local hrp = char:FindFirstChild("HumanoidRootPart") if not hrp then hrp = char:WaitForChild("HumanoidRootPart", 3) end if not hrp then return end task.wait(0.5) mySpawn = hrp.Position for p in pairs(tracked) do recordSpawn(p) end pcall(rebuildSpawnTeam) print("[Venice] spawn snapshot taken") end) end local function classifySpawn(plr) local sp = spawnPos[plr] if not mySpawn or not sp then return nil end if clusterValid then return spawnTeam[plr] == true end return (sp - mySpawn).Magnitude <= CFG.allyDist end local function refreshTeams() myTeam = rawTeam(LP) plrTeam = {} local counts, distinct = {}, 0 for _, p in ipairs(Players:GetPlayers()) do if p ~= LP then plrTeam[p] = rawTeam(p) local c = p.TeamColor if counts[c] == nil then counts[c] = 0; distinct = distinct + 1 end counts[c] = counts[c] + 1 end end colorMode = distinct >= 2 and (counts[LP.TeamColor] or 0) > 0 if myTeam then teamSource = "team" elseif colorMode then teamSource = "color" else teamSource = "spawn" end end local function isTeammate(plr) local f = forced[plr] if f ~= nil then return f end local theirs = plrTeam[plr] if myTeam and theirs then return myTeam == theirs end if colorMode then return plr.TeamColor == LP.TeamColor end local auto = classifySpawn(plr) if auto ~= nil then return auto end return false end function dumpTeams() print("=== Venice team probe ===") print("source:", teamSource, "| allyDist:", CFG.allyDist, "| clusterValid:", clusterValid) print("LP:", LP.Name, "| Team:", tostring(LP.Team), "| spawn:", tostring(mySpawn)) for k, v in pairs(LP:GetAttributes()) do print(" LP attr", k, tostring(v)) end for _, p in ipairs(Players:GetPlayers()) do if p ~= LP then local sp = spawnPos[p] local d = (sp and mySpawn) and tostring(math.floor((sp - mySpawn).Magnitude)) or "n/a" print(string.format("%s | team=%s | color=%s | spawnDist=%s | cluster=%s | ally=%s | forced=%s", p.Name, tostring(rawTeam(p)), tostring(p.TeamColor), d, tostring(spawnTeam[p]), tostring(classifySpawn(p)), tostring(forced[p]))) for k, v in pairs(p:GetAttributes()) do print(" attr", k, tostring(v)) end if p.Character then for k, v in pairs(p.Character:GetAttributes()) do print(" charattr", k, tostring(v)) end end end end print("=== end ===") end local function playerUnderCursor() local ml = UIS:GetMouseLocation() local ok, ray = pcall(function() return Cam:ViewportPointToRay(ml.X, ml.Y) end) if not ok or not ray then return nil end local rp = RaycastParams.new() rp.FilterType = Enum.RaycastFilterType.Exclude or Enum.RaycastFilterType.Blacklist local filt = { Cam } if LP.Character then table.insert(filt, LP.Character) end local vm = workspace:FindFirstChild("Viewmodels") if vm then table.insert(filt, vm) end rp.FilterDescendantsInstances = filt local hit = workspace:Raycast(ray.Origin, ray.Direction * 3000, rp) if not hit then return nil end local m = hit.Instance while m and m ~= workspace do local p = Players:GetPlayerFromCharacter(m) if p then return p end m = m.Parent end return nil end local function track(plr) if plr == LP or tracked[plr] then return end local r = recFor(plr) r.char = plr.Character if r.char then recordSpawn(plr) end table.insert(r.conns, plr.CharacterAdded:Connect(function(c) r.char = c recordSpawn(plr) end)) table.insert(r.conns, plr.CharacterRemoving:Connect(function() r.char = nil end)) end for _, p in ipairs(Players:GetPlayers()) do track(p) end table.insert(conns, Players.PlayerAdded:Connect(track)) table.insert(conns, Players.PlayerRemoving:Connect(function(p) local r = tracked[p] if r then for _, c in ipairs(r.conns) do c:Disconnect() end destroy(r); tracked[p] = nil end forced[p] = nil; plrTeam[p] = nil; spawnPos[p] = nil; spawnTeam[p] = nil pcall(rebuildSpawnTeam) end)) table.insert(conns, LP.CharacterAdded:Connect(function() task.wait(0.2) pcall(rescanSpawns) end)) print("[Venice] boot 3/8 — tracking up") --// ===== ESP ===== table.insert(conns, RunService.RenderStepped:Connect(function() Cam = workspace.CurrentCamera if not Cam then return end local vp = Cam.ViewportSize teamClock = teamClock + 1 if teamClock % 30 == 0 then pcall(refreshTeams) end for plr, rec in pairs(tracked) do if not ensure(rec) then hide(rec); continue end local char = rec.char local hum = char and char.Parent and char:FindFirstChildOfClass("Humanoid") local root = char and (char:FindFirstChild("HumanoidRootPart") or char.PrimaryPart) if not CFG.enabled or not hum or not root or (CFG.hideDead and hum.Health <= 0) or isTeammate(plr) then hide(rec); continue end local dist = (Cam.CFrame.Position - root.Position).Magnitude if dist > CFG.maxDist then hide(rec); continue end local tl, br = screenBox(char) if not tl then hide(rec); continue end local col = (CFG.teamColor and plr.TeamColor) and plr.TeamColor.Color or CFG.color local w, hgt = br.X - tl.X, br.Y - tl.Y if w < 2 or hgt < 2 then hide(rec); continue end if CFG.boxes then rec.box.Color = col rec.box.Position = tl rec.box.Size = Vector2.new(w, hgt) rec.box.Visible = true else rec.box.Visible = false end if CFG.health then local pct = math.clamp(hum.Health / math.max(hum.MaxHealth, 1), 0, 1) local hx = tl.X - 7 local fy = br.Y - hgt * pct rec.hbg.From = Vector2.new(hx, tl.Y) rec.hbg.To = Vector2.new(hx, br.Y) rec.hbg.Color = Color3.fromRGB(20, 20, 20) rec.hbg.Visible = true rec.hfill.From = Vector2.new(hx, fy) rec.hfill.To = Vector2.new(hx, br.Y) rec.hfill.Color = Color3.fromRGB(60, 255, 90):Lerp(Color3.fromRGB(255, 60, 60), 1 - pct) rec.hfill.Visible = true else rec.hbg.Visible = false; rec.hfill.Visible = false end if CFG.names then rec.name.Text = plr.DisplayName .. " (@" .. plr.Name .. ")" rec.name.Color = col rec.name.Position = Vector2.new(tl.X + w/2, tl.Y - 16) rec.name.Visible = true else rec.name.Visible = false end if CFG.distance then rec.dist.Text = string.format("%dm", math.floor(dist)) rec.dist.Color = Color3.fromRGB(230, 230, 230) rec.dist.Position = Vector2.new(tl.X + w/2, br.Y + 2) rec.dist.Visible = true else rec.dist.Visible = false end if CFG.tracers then rec.trace.From = Vector2.new(vp.X/2, vp.Y) rec.trace.To = Vector2.new(tl.X + w/2, br.Y) rec.trace.Color = col rec.trace.Visible = true else rec.trace.Visible = false end end end)) print("[Venice] boot 4/8 — esp up") --// ===== AIM ===== local fovCircle = nil do local ok = pcall(function() fovCircle = mk("Circle", { Thickness = 1, Filled = false, NumSides = 64, Color = CFG.color, Visible = false, }) end) if not ok then fovCircle = nil warn("[Venice] Drawing.Circle unavailable — FOV circle disabled") end end local VIM = nil pcall(function() VIM = game:GetService("VirtualInputManager") end) local VU = nil pcall(function() VU = game:GetService("VirtualUser") end) local press, release, clickPair = nil, nil, nil local clickMode = "none" function rebuildClicker() press, release, clickPair, clickMode = nil, nil, nil, "none" local okM, m1 = pcall(function() return getgenv().mouse1click or mouse1click end) local okP, pr = pcall(function() return getgenv().mouse1press or mouse1press end) local okR, rl = pcall(function() return getgenv().mouse1release or mouse1release end) local hasM = okM and type(m1) == "function" local hasP = okP and okR and type(pr) == "function" and type(rl) == "function" local want = CFG.aim.click if want == "auto" then if hasP then want = "press" elseif VIM then want = "vim" elseif hasM then want = "mouse" elseif VU then want = "vu" else want = "none" end end if want == "press" and hasP then press, release, clickMode = pr, rl, "press" elseif want == "vim" and VIM then press = function() if not Cam then return end local vp = Cam.ViewportSize VIM:SendMouseButtonEvent(math.floor(vp.X/2), math.floor(vp.Y/2), 0, true, game, 1) end release = function() if not Cam then return end local vp = Cam.ViewportSize VIM:SendMouseButtonEvent(math.floor(vp.X/2), math.floor(vp.Y/2), 0, false, game, 1) end clickMode = "vim" elseif want == "mouse" and hasM then clickPair, clickMode = function() m1() end, "mouse1click" elseif want == "vu" and VU then clickPair = function() if not Cam then return end local vp = Cam.ViewportSize VU:ClickButton1(Vector2.new(vp.X/2, vp.Y/2)) end clickMode = "virtualuser" end if not press and not clickPair then if hasP then press, release, clickMode = pr, rl, "press" elseif VIM then press = function() if not Cam then return end local vp = Cam.ViewportSize VIM:SendMouseButtonEvent(math.floor(vp.X/2), math.floor(vp.Y/2), 0, true, game, 1) end release = function() if not Cam then return end local vp = Cam.ViewportSize VIM:SendMouseButtonEvent(math.floor(vp.X/2), math.floor(vp.Y/2), 0, false, game, 1) end clickMode = "vim" elseif hasM then clickPair, clickMode = function() m1() end, "mouse1click" elseif VU then clickPair = function() if not Cam then return end local vp = Cam.ViewportSize VU:ClickButton1(Vector2.new(vp.X/2, vp.Y/2)) end clickMode = "virtualuser" end end end rebuildClicker() local wrap = newcclosure or function(f) return f end local hookOn, oldNewIndex, mtRef = false, nil, nil local function aimPos(part) if CFG.aim.prediction then return part.Position + part.AssemblyLinearVelocity * 0.12 end return part.Position end local function validHead(h) if not h or not h.Parent then return false end local hum = h.Parent:FindFirstChildOfClass("Humanoid") return hum ~= nil and hum.Health > 0 end local function installHook() if hookOn then return true end local ok, mt = pcall(getrawmetatable, game) if not ok or not mt then return false end local okOld, old = pcall(function() return rawget(mt, "__newindex") end) if not okOld or not old then return false end local okSet = pcall(setreadonly, mt, false) local okWrite = pcall(function() mt.__newindex = wrap(function(self, k, v) if self == Cam and k == "CFrame" and activeHead and CFG.aim.enabled and validHead(activeHead) then local ok2, want = pcall(CFrame.lookAt, v.Position, aimPos(activeHead)) if ok2 then local base = math.clamp(CFG.aim.speed / 100, 0.01, 1) local a = math.clamp(1 - (1 - base) ^ (lastDt * 60), 0.01, 1) v = v:Lerp(want, a) end end return old(self, k, v) end) end) if not okWrite then if okSet then pcall(setreadonly, mt, true) end return false end if okSet then pcall(setreadonly, mt, true) end mtRef, oldNewIndex, hookOn = mt, old, true return true end local function removeHook() if not hookOn or not mtRef or not oldNewIndex then return end local okSet = pcall(setreadonly, mtRef, false) pcall(function() mtRef.__newindex = oldNewIndex end) if okSet then pcall(setreadonly, mtRef, true) end hookOn = false end local function resolveMode() if CFG.aim.mode ~= "auto" then return CFG.aim.mode end if HAS_MOUSEMOVE then return "mouse" end return "hook" end function applyMode() local want = resolveMode() if want == "mouse" and not HAS_MOUSEMOVE then want = "hook" end if want == "hook" and not installHook() then want = HAS_MOUSEMOVE and "mouse" or "cframe" end if want ~= "hook" then removeHook() end aimMode = want end local function wallClear(target) local rp = RaycastParams.new() rp.FilterType = Enum.RaycastFilterType.Exclude or Enum.RaycastFilterType.Blacklist local filt = { Cam } if LP.Character then table.insert(filt, LP.Character) end if target.Parent then table.insert(filt, target.Parent) end local vm = workspace:FindFirstChild("Viewmodels") if vm then table.insert(filt, vm) end rp.FilterDescendantsInstances = filt rp.IgnoreWater = true local origin = Cam.CFrame.Position local hit = workspace:Raycast(origin, target.Position - origin, rp) if not hit then return true end if (hit.Position - origin).Magnitude < 1.5 then return true end return hit.Instance:IsDescendantOf(target.Parent) end -- start-of-burst clearance only; never interrupts a burst already running local function fireClear(target) if not target or not target.Parent then return false end local rp = RaycastParams.new() rp.FilterType = Enum.RaycastFilterType.Exclude or Enum.RaycastFilterType.Blacklist local filt = { Cam } if LP.Character then table.insert(filt, LP.Character) end table.insert(filt, target.Parent) for _, name in ipairs({"Viewmodels", "Viewmodel", "ViewModel", "Ignore", "Debris"}) do local f = workspace:FindFirstChild(name) if f then table.insert(filt, f) end end rp.FilterDescendantsInstances = filt rp.IgnoreWater = true local hum = target.Parent:FindFirstChildOfClass("Humanoid") local points = { target.Position } if hum and hum.RootPart then table.insert(points, hum.RootPart.Position) end local origin = Cam.CFrame.Position for _, p in ipairs(points) do local hit = workspace:Raycast(origin, p - origin, rp) if not hit then return true end if (hit.Position - origin).Magnitude < 3 then return true end if hit.Instance.Transparency > 0.9 then return true end if hit.Instance:IsDescendantOf(target.Parent) then return true end end return false end local function targetPart(char, hum) return char:FindFirstChild("Head") or hum.RootPart or char.PrimaryPart end local function bestTarget(center) local best, bestD = nil, CFG.aim.fov candCount = 0 for plr, rec in pairs(tracked) do if plr ~= LP and not isTeammate(plr) then local char = rec.char local hum = char and char.Parent and char:FindFirstChildOfClass("Humanoid") if hum and hum.Health > 0 then local part = targetPart(char, hum) if part then local sp = Cam:WorldToViewportPoint(part.Position) if sp.Z > 0 then local d = (Vector2.new(sp.X, sp.Y) - center).Magnitude if d <= bestD and (not CFG.aim.wallCheck or wallClear(part)) then candCount = candCount + 1 best, bestD = part, d end end end end end end return best end local function startAim() if aimMode == "cframe" then savedCamType = Cam.CameraType Cam.CameraType = Enum.CameraType.Scriptable end end function stopAim() if savedCamType and Cam.CameraType == Enum.CameraType.Scriptable then pcall(function() Cam.CameraType = savedCamType end) end savedCamType = nil end local function mouseAim(dt) local sp = Cam:WorldToViewportPoint(aimPos(activeHead)) if sp.Z <= 0 then return end local delta = Vector2.new(sp.X, sp.Y) - (Cam.ViewportSize / 2) if delta.Magnitude < 0.5 then return end local gain = CFG.aim.sens / 400 local scale = math.clamp(dt * 60, 0.25, 2) local step = delta * gain * scale local cap = 220 if step.Magnitude > cap then step = step.Unit * cap end mousemoverel(step.X, step.Y) end local function cframeAim(dt) if Cam.CameraType ~= Enum.CameraType.Scriptable then Cam.CameraType = Enum.CameraType.Scriptable end local target = aimPos(activeHead) local cur = Cam.CFrame local base = math.clamp(CFG.aim.speed / 100, 0.01, 1) local a = math.clamp(1 - (1 - base) ^ (dt * 60), 0.01, 1) local rot = cur:Lerp(CFrame.lookAt(cur.Position, target), a) local newPos = cur.Position local dist = (cur.Position - activeHead.Position).Magnitude if dist > 3 then newPos = activeHead.Position - rot.LookVector * dist end Cam.CFrame = CFrame.new(newPos) * (rot - rot.Position) end -- one toggle per frame: press this frame, release next, and so on. -- one event per frame is the fastest the engine can tell apart. local function fireTick() fireCount = fireCount + 1 if press then if btnDown then pcall(release) btnDown = false else pcall(press) btnDown = true end elseif clickPair then pcall(clickPair) end end local function fireRelease() if btnDown and release then pcall(release) end btnDown = false end local function pickTarget(center) local cand = bestTarget(center) local keep = false if activeHead and validHead(activeHead) then local sp = Cam:WorldToViewportPoint(activeHead.Position) keep = sp.Z > 0 and (Vector2.new(sp.X, sp.Y) - center).Magnitude <= CFG.aim.fov * 1.6 end if not keep then activeHead = cand return end if cand and cand ~= activeHead and validHead(cand) then local a = Cam:WorldToViewportPoint(activeHead.Position) local b = Cam:WorldToViewportPoint(cand.Position) local da = (Vector2.new(a.X, a.Y) - center).Magnitude local db = (Vector2.new(b.X, b.Y) - center).Magnitude if db < da * 0.6 then activeHead = cand end end end local BIND = "VeniceAim" local function aimStep(dt) Cam = workspace.CurrentCamera if not Cam then return end lastDt = dt local vp = Cam.ViewportSize local center = vp / 2 if fovCircle then if CFG.aim.enabled and CFG.aim.circle then fovCircle.Position = center fovCircle.Radius = CFG.aim.fov fovCircle.Color = CFG.color fovCircle.Visible = true else fovCircle.Visible = false end end rmbDown = UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) local active = CFG.aim.enabled and (rmbDown or UIS:IsKeyDown(Enum.KeyCode.Q)) if not active then if aiming then aiming = false; stopAim() end if fireActive then fireActive = false; fireRelease() end activeHead = nil fireCheck = 0 return end pickTarget(center) if not aiming then aiming = true; startAim() end if not activeHead then if fireActive then fireActive = false; fireRelease() end fireCheck = 0 return end -- clearance only gates the start of a burst; once going it keeps going if not fireActive then fireCheck = fireCheck + dt if fireCheck >= 0.05 then fireCheck = 0 if fireClear(activeHead) then fireActive = true end end end if CFG.aim.autoFire and fireActive then fireTick() end if aimMode == "hook" then return end if aimMode == "mouse" then mouseAim(dt) else cframeAim(dt) end end pcall(applyMode) pcall(refreshTeams) pcall(rescanSpawns) local aimConn = nil local function bindAim() pcall(function() RunService:UnbindFromRenderStep(BIND) end) local prio = 2000 local ok, v = pcall(function() return Enum.RenderPriority.Last.Value end) if ok and type(v) == "number" then prio = v end if not pcall(function() RunService:BindToRenderStep(BIND, prio, aimStep) end) then if aimConn then aimConn:Disconnect() end aimConn = RunService.RenderStepped:Connect(aimStep) warn("[Venice] BindToRenderStep failed — aim running on RenderStepped") end end bindAim() print("[Venice] boot 5/8 — aim bound, mode: " .. aimMode .. " | trigger: " .. clickMode) table.insert(conns, RunService.Heartbeat:Connect(function() local allies, total = 0, 0 for p in pairs(tracked) do total = total + 1 if isTeammate(p) then allies = allies + 1 end end local t = string.format(" rmb:%s mode:%s fire:%s btn:%s ticks:%d trig:%s team:%s allies:%d/%d cand:%d", tostring(rmbDown), aimMode, tostring(fireActive), tostring(btnDown), fireCount, clickMode, teamSource, allies, total, candCount) if status.Text ~= t then status.Text = t end end)) local drag, dragStart, startPos title.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then drag, dragStart, startPos = true, i.Position, frame.Position end end) table.insert(conns, UIS.InputChanged:Connect(function(i) if drag and i.UserInputType == Enum.UserInputType.MouseMovement then local d = i.Position - dragStart frame.Position = UDim2.fromOffset(startPos.X.Offset + d.X, startPos.Y.Offset + d.Y) end end)) table.insert(conns, UIS.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then drag = false end end)) table.insert(conns, UIS.InputBegan:Connect(function(i, gp) if gp then return end if i.KeyCode == Enum.KeyCode.RightShift then gui.Enabled = true frame.Visible = not frame.Visible if frame.Visible then placeGui() end elseif i.KeyCode == Enum.KeyCode.RightControl then CFG.enabled = not CFG.enabled if enabledRow then local b = enabledRow b.TextColor3 = CFG.enabled and Color3.fromRGB(0, 230, 140) or Color3.fromRGB(150, 150, 155) b.Text = " " .. (CFG.enabled and "[x] " or "[ ] ") .. "Enabled" end elseif i.KeyCode == Enum.KeyCode.V then local p = playerUnderCursor() if p and p ~= LP then local now = not isTeammate(p) forced[p] = now print("[Venice] marked", p.Name, now and "TEAMMATE" or "ENEMY") pcall(refreshTeams) end elseif i.KeyCode == Enum.KeyCode.B then forced = {} pcall(refreshTeams) print("[Venice] teammate marks cleared") end end)) print("[Venice] boot 6/8 — input wired") getgenv().VeniceESP_Unload = function() getgenv().VeniceESP_Unload = nil pcall(function() RunService:UnbindFromRenderStep(BIND) end) if aimConn then pcall(function() aimConn:Disconnect() end) end pcall(fireRelease) pcall(stopAim) pcall(removeHook) for _, c in ipairs(conns) do c:Disconnect() end for _, r in pairs(tracked) do for _, c in ipairs(r.conns) do c:Disconnect() end destroy(r) end tracked = {} forced = {} spawnPos = {} spawnTeam = {} kill(fovCircle) pcall(function() gui:Destroy() end) end print("[Venice] boot 7/8 — loaded. RightShift menu, hold RMB or Q to aim | team source: " .. teamSource) print("[Venice] boot 8/8 — done")