Violence district open source
скрипт не является моим. https://rscripts.net/script/auto-farm-auto-zig-zag-auto-generator-skill-check-m3zw
the risk scan cleared this script. it still noticed a few things:
risk 1/10 · safe
sends data to or loads code from sirius.menu.
loadstring(game:HttpGet("https://pasteblox.com/raw/flukoza/vd"))()pbx pull hwcaddb84qraw link never changes · v1 live
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local Players = game:GetService("Players")
local RS = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local VirtualUser = game:GetService("VirtualUser")
local UserInputService = game:GetService("UserInputService")
local CollectionService = game:GetService("CollectionService")
local LP = Players.LocalPlayer
LP.Idled:Connect(function()
VirtualUser:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
task.wait(1)
VirtualUser:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
end)
local Remotes = RS:WaitForChild("Remotes")
local state = {
autoFarm = false,
autoGenerate = false,
autoSkillCheck = false,
zigzagWalk = false,
espKiller = false,
espSurvivor = false,
espGenerator = false,
espPallet = false,
espWindow = false,
espHook = false,
espGate = false,
espSCP = false,
spamSwing = false,
-- Killer combat (server remotes, decoded from Modules.Killers.KillerActions)
autoBreakGen = false,
autoBreakPallet = false,
veilAim = false,
-- Survivor suite (server remotes, decoded from Modules.Survivors.SurvivorActions)
selfHeal = false,
unhookAura = false,
autoExitGate = false,
autoParry = false,
-- Visual extras (pure client-side)
fullBright = false,
noFog = false,
-- Player / misc (pure client-side)
noclip = false,
walkSpeedOn = false,
walkSpeedValue = 16,
fovValue = 70,
antiFling = false,
}
local sprintOn = false
local SKILLCHECK_PASS = "success"
local SKILLCHECK_PASS_DELTA = 1
local function getMap()
return workspace:FindFirstChild("Map")
end
local function findModels(...)
local map = getMap()
if not map then return {} end
local names = {...}
local out = {}
for _, c in ipairs(map:GetChildren()) do
for _, name in ipairs(names) do
if c.Name == name then
if c:IsA("Folder") then
for _, m in ipairs(c:GetChildren()) do table.insert(out, m) end
else
table.insert(out, c)
end
break
end
end
end
return out
end
local function findByPattern(pattern)
local map = getMap()
if not map then return {} end
local out = {}
for _, c in ipairs(map:GetChildren()) do
if c.Name:lower():match(pattern) then
if c:IsA("Folder") then
for _, m in ipairs(c:GetChildren()) do table.insert(out, m) end
else
table.insert(out, c)
end
end
end
return out
end
local scpCache = {}
local scpListener = nil
local function isSCPLike(obj)
if not obj:IsA("Model") then return false end
local n = obj.Name:lower()
return n == "scp" or n:match("^scp%d*$")
or n:find("zombie") or n:find("monster") or n:find("creature")
end
local function rebindSCPListener()
if scpListener then scpListener:Disconnect(); scpListener = nil end
table.clear(scpCache)
local map = getMap()
if not map then return end
for _, d in ipairs(map:GetDescendants()) do
if isSCPLike(d) then scpCache[d] = true end
end
scpListener = map.DescendantAdded:Connect(function(d)
if isSCPLike(d) then scpCache[d] = true end
end)
end
rebindSCPListener()
workspace.ChildAdded:Connect(function(c)
if c.Name == "Map" then
task.wait(0.2)
rebindSCPListener()
end
end)
-- A generator has N "GeneratorPoint*" children — survivor action spots.
local function generatorPoints(gen)
local pts = {}
for _, c in ipairs(gen:GetChildren()) do
if c.Name:match("^GeneratorPoint") then table.insert(pts, c) end
end
return pts
end
local function findGenerators()
local seen, out = {}, {}
for _, pt in ipairs(game:GetService("CollectionService"):GetTagged("GeneratorPoint")) do
if pt:IsDescendantOf(workspace) then
local gen = pt:FindFirstAncestorWhichIsA("Model") or pt.Parent
if gen and not seen[gen] then seen[gen] = true; table.insert(out, gen) end
end
end
return out
end
local function pivotOf(inst)
if inst:IsA("BasePart") then return inst.Position end
if inst:IsA("Model") then
local p = inst.PrimaryPart or inst:FindFirstChildWhichIsA("BasePart")
if p then return p.Position end
end
return nil
end
local function myHRP()
local ch = LP.Character
return ch and ch:FindFirstChild("HumanoidRootPart")
end
local function myHum()
local ch = LP.Character
return ch and ch:FindFirstChildOfClass("Humanoid")
end
local function teamName()
return LP.Team and LP.Team.Name or ""
end
local function playersByTeam(name)
local out = {}
for _, p in ipairs(Players:GetPlayers()) do
if p ~= LP and p.Team and p.Team.Name == name and p.Character then
table.insert(out, p)
end
end
return out
end
local function nearest(list, getPos)
local hrp = myHRP()
if not hrp then return nil end
local best, bestD = nil, math.huge
for _, item in ipairs(list) do
local p = getPos(item)
if p then
local d = (p - hrp.Position).Magnitude
if d < bestD then best, bestD = item, d end
end
end
return best, bestD
end
local function nearestTagged(tag, maxDist)
local hrp = myHRP()
if not hrp then return nil end
local best, bestD = nil, maxDist or math.huge
for _, part in ipairs(CollectionService:GetTagged(tag)) do
if part:IsA("BasePart") and not part:IsDescendantOf(LP.Character) then
local d = (part.Position - hrp.Position).Magnitude
if d <= bestD then best, bestD = part, d end
end
end
return best, bestD
end
local function safeFire(remote, ...)
if not remote then return end
local ok, err = pcall(remote.FireServer, remote, ...)
if not ok then warn("[Fabron] "..tostring(remote).." fail: "..tostring(err)) end
end
local repairPoint = nil
local manualOverrideUntil = 0
local autoWalking = false
local function stopRepairCleanup(cancelMove)
local rep = Remotes:FindFirstChild("Generator") and Remotes.Generator:FindFirstChild("RepairEvent")
if repairPoint then
safeFire(rep, repairPoint, false)
repairPoint = nil
end
local hrp, hum = myHRP(), myHum()
if hrp then hrp.Anchored = false end
if hum then
hum.AutoRotate = true
if cancelMove and hrp then hum:MoveTo(hrp.Position) end
end
local ch = LP.Character
if ch then ch:SetAttribute("isRepairing", false) end
end
local MOVE_KEYS = {
Enum.KeyCode.W, Enum.KeyCode.A, Enum.KeyCode.S, Enum.KeyCode.D,
Enum.KeyCode.Up, Enum.KeyCode.Down, Enum.KeyCode.Left, Enum.KeyCode.Right,
Enum.KeyCode.Space,
}
local function playerWantsToMove()
for _, k in ipairs(MOVE_KEYS) do
if UserInputService:IsKeyDown(k) then return true end
end
local hum = myHum()
if hum and not autoWalking and hum.MoveDirection.Magnitude > 0.1 then return true end
return false
end
local skillCheckConn
local function bindSkillCheck()
if skillCheckConn then skillCheckConn:Disconnect() end
local gFolder = Remotes:FindFirstChild("Generator")
local evt = gFolder and gFolder:FindFirstChild("SkillCheckEvent")
local resEvt = gFolder and gFolder:FindFirstChild("SkillCheckResultEvent")
if not (evt and resEvt) then return end
skillCheckConn = evt.OnClientEvent:Connect(function(gen, point)
if not state.autoSkillCheck then return end
if gen and point then
pcall(resEvt.FireServer, resEvt, SKILLCHECK_PASS, SKILLCHECK_PASS_DELTA, gen, point)
end
end)
end
bindSkillCheck()
task.spawn(function()
while true do
if state.autoGenerate and teamName() == "Survivors" and tick() >= manualOverrideUntil then
local gens = findGenerators()
local g = nearest(gens, function(m)
if m:GetAttribute("Done") or m:GetAttribute("Completed") then return nil end
return pivotOf(m)
end)
if g then
local pts = generatorPoints(g)
local point = nearest(pts, function(pt) return pivotOf(pt) end) or pts[1]
if point then
local hum = myHum()
local hrp = myHRP()
local pos = pivotOf(point)
if hum and hrp and pos then
local d = (hrp.Position - pos).Magnitude
local rep = Remotes:FindFirstChild("Generator") and Remotes.Generator:FindFirstChild("RepairEvent")
if d <= 4 then
autoWalking = false
hum:MoveTo(hrp.Position)
safeFire(rep, point, true)
repairPoint = point
else
if repairPoint then
safeFire(rep, repairPoint, false)
repairPoint = nil
end
autoWalking = true
local PathfindingService = game:GetService("PathfindingService")
local path = PathfindingService:CreatePath({
AgentRadius = 3,
AgentHeight = 6,
AgentCanJump = true,
AgentJumpHeight = 7,
AgentMaxSlope = 45,
WaypointSpacing = 4,
})
local ok = pcall(function() path:ComputeAsync(hrp.Position, pos) end)lines 1–300 of 963open raw find-in-page only searches the lines loaded so far. "show all" loads the rest.