-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6b0e01c877c235affb1a0c50"))() end) end) --[[rscripts:analytics:end]] local Players = cloneref(game:GetService("Players")) local ReplicatedStorage = cloneref(game:GetService("ReplicatedStorage")) local GuiService = cloneref(game:GetService("GuiService")) local UserInputService = cloneref(game:GetService("UserInputService")) local StarterGui = cloneref(game:GetService("StarterGui")) local Workspace = cloneref(game:GetService("Workspace")) local LocalPlayer = Players.LocalPlayer local S = { Enabled = true, SilentAim = true, Triggerbot = true, AutoShootToggleKey = Enum.KeyCode.T, KnifeLastKill = true, WallCheck = true, TeamCheck = true, Range = 1500, KnifeRange = 9.5, KnifeHpThreshold = 100, TargetPart = "Head", Delay = 0.035, KnifeDelay = 0.045, TickRate = 0.025, ScanRate = 0.05, EspEnabled = true, Chams = true, EspRate = 0.5, BoxColor = Color3.fromRGB(255, 60, 60), } getgenv().Config = S pcall(function() StarterGui:SetCore("SendNotification", { Title = "Tiny Snipers", Text = "By luhscripter (T toggles autoshoot)", Duration = 3, }) end) local moduleCache = {} local function findMod(name) local cached = moduleCache[name] if cached ~= nil then return cached or nil end local sharedFolder = ReplicatedStorage:FindFirstChild("Shared") if sharedFolder then local direct = sharedFolder:FindFirstChild(name, true) if direct and direct:IsA("ModuleScript") then local ok, m = pcall(require, direct) if ok and type(m) == "table" then moduleCache[name] = m return m end end end for _, d in ipairs(ReplicatedStorage:GetDescendants()) do if d:IsA("ModuleScript") and d.Name == name then local ok, m = pcall(require, d) if ok and type(m) == "table" then moduleCache[name] = m return m end end end moduleCache[name] = false return nil end local ShotRules = findMod("ShotRules") local WeaponController = findMod("WeaponController") local WeaponState = findMod("WeaponState") local getu = debug and debug.getupvalues or getupvalues local EYE = Vector3.new(0, 1.5, 0) local hasMouse1Press = type(mouse1press) == "function" local hasMouse1Release = type(mouse1release) == "function" local isMouseHeld = false local function releaseMouse1() isMouseHeld = false if hasMouse1Release then pcall(mouse1release) end end local menuOpen = false local escapeHeld = false if GuiService then menuOpen = GuiService.MenuIsOpen == true GuiService.MenuOpened:Connect(function() menuOpen = true escapeHeld = false end) GuiService.MenuClosed:Connect(function() menuOpen = false escapeHeld = false end) end local function isMenuActive() return menuOpen or escapeHeld end if UserInputService then UserInputService.InputBegan:Connect(function(input, gameProcessed) if input.KeyCode == Enum.KeyCode.Escape then escapeHeld = true return end if input.KeyCode ~= S.AutoShootToggleKey then return end if UserInputService:GetFocusedTextBox() ~= nil then return end if menuOpen or escapeHeld then return end S.Triggerbot = not S.Triggerbot if not S.Triggerbot then releaseMouse1() end end) UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.Escape then escapeHeld = false end end) end local ignoreBuf = {nil, nil} local cachedIgnoreChar = nil local cachedIgnoreCam = nil local function buildIgnore(myChar, cam) if cachedIgnoreChar == myChar and cachedIgnoreCam == cam then return ignoreBuf end ignoreBuf[1] = cam ignoreBuf[2] = myChar cachedIgnoreChar = myChar cachedIgnoreCam = cam return ignoreBuf end local cachedParams = nil local cachedParamsChar = nil local cachedParamsCam = nil local function getWorldParams(myChar, cam) if cachedParams and cachedParamsChar == myChar and cachedParamsCam == cam then return cachedParams end if not ShotRules or type(ShotRules.worldParams) ~= "function" then return nil end local ok, wp = pcall(ShotRules.worldParams, buildIgnore(myChar, cam)) if ok and typeof(wp) == "RaycastParams" then cachedParams = wp cachedParamsChar = myChar cachedParamsCam = cam return wp end return nil end local function hasLos(eye, targetPos, myChar, cam) local wp = getWorldParams(myChar, cam) if not wp then return true end local delta = targetPos - eye local dist = delta.Magnitude if dist <= 0.01 then return true end local res = Workspace:Raycast(eye, delta, wp) if not res then return true end return res.Distance >= dist - 0.5 end local myTeamIdAttr = nil if LocalPlayer then myTeamIdAttr = LocalPlayer:GetAttribute("TeamID") LocalPlayer:GetAttributeChangedSignal("TeamID"):Connect(function() myTeamIdAttr = LocalPlayer:GetAttribute("TeamID") end) end local modelCache = setmetatable({}, {__mode = "k"}) local function getModelParts(model) local entry = modelCache[model] if entry and entry.hum and entry.hum.Parent and entry.part and entry.part.Parent then return entry.hum, entry.part, entry.root end local hum = model:FindFirstChildOfClass("Humanoid") local part = model:FindFirstChild(S.TargetPart) or model:FindFirstChild("HumanoidRootPart") local root = model:FindFirstChild("HumanoidRootPart") or part if not entry then entry = {} modelCache[model] = entry end entry.hum = hum entry.part = part entry.root = root return hum, part, root end local charToPlayer = setmetatable({}, {__mode = "k"}) local function playerFromModel(model) local p = charToPlayer[model] if p then return p end p = Players:GetPlayerFromCharacter(model) if p then charToPlayer[model] = p end return p end local function isEnemy(model, myChar, myTeamAttr, myTeamRef, hum) if not model or model == myChar then return false end if not hum or not hum.Parent or hum.Health <= 0 then return false end if model:GetAttribute("CurrentHighlight") == "SpawnProtection" then return false end if model:FindFirstChildOfClass("ForceField") then return false end if S.TeamCheck then local plr = playerFromModel(model) if plr then if myTeamRef and plr.Team == myTeamRef then return false end local pTeamId = plr:GetAttribute("TeamID") if myTeamIdAttr ~= nil and pTeamId ~= nil and myTeamIdAttr == pTeamId then return false end end local theirTeam = model:GetAttribute("Team") if myTeamAttr ~= nil and theirTeam ~= nil and myTeamAttr == theirTeam then return false end end return true end local function isLastKillTarget(model, hum) if not S.KnifeLastKill or not model or not hum then return false end if model:GetAttribute("LastKill") == true or model:GetAttribute("MatchPoint") == true or model:GetAttribute("FinalLife") == true then return true end local plr = playerFromModel(model) if plr and (plr:GetAttribute("LastKill") == true or plr:GetAttribute("MatchPoint") == true or plr:GetAttribute("FinalLife") == true) then return true end if hum.Health > 0 and hum.Health <= S.KnifeHpThreshold then return true end return false end local combatBuf = {} local combatCacheT = 0 local combatantsRef = nil local combatDirty = true local function bindCombatantsFolder(folder) if combatantsRef == folder and folder and folder.Parent then return end combatantsRef = folder combatDirty = true if folder then folder.ChildAdded:Connect(function() combatDirty = true end) folder.ChildRemoved:Connect(function() combatDirty = true end) end end local function combatantList(now) if not combatDirty and (now - combatCacheT < 0.6) then return combatBuf end table.clear(combatBuf) if not combatantsRef or not combatantsRef.Parent then local folder = (ShotRules and type(ShotRules.combatantsFolder) == "function" and ShotRules.combatantsFolder()) or Workspace:FindFirstChild("Combatants") bindCombatantsFolder(folder) end if combatantsRef then for _, m in ipairs(combatantsRef:GetChildren()) do if m:IsA("Model") then combatBuf[#combatBuf + 1] = m end end end if #combatBuf == 0 then for _, p in ipairs(Players:GetPlayers()) do if p ~= LocalPlayer and p.Character then combatBuf[#combatBuf + 1] = p.Character end end end combatCacheT = now combatDirty = false return combatBuf end local cachedState = nil local cachedStateT = 0 local function stateValid(st) return type(st) == "table" and type(st.ammo) == "number" and type(st.equipped) == "string" and st.nextShotAt ~= nil end local function scanControllerState() if type(WeaponController) ~= "table" or not getu then return nil end for _, fn in pairs(WeaponController) do if type(fn) == "function" then local ok, ups = pcall(getu, fn) if ok and type(ups) == "table" then for _, u in pairs(ups) do if stateValid(u) then return u end end end end end return nil end local function getControllerState(now) if cachedState and stateValid(cachedState) and (now - cachedStateT < 2) then return cachedState end local found = scanControllerState() if found then cachedState = found cachedStateT = now end return found end local knifeLatched = false local function setKnifeMode(active, now) local st = getControllerState(now or os.clock()) if active then if st then if st.equipped ~= "Knife" then st._prevEquipped = st.equipped st.equipped = "Knife" knifeLatched = true end end elseif knifeLatched then if not st then knifeLatched = false return end st.equipped = st._prevEquipped or st.equipped st._prevEquipped = nil knifeLatched = false end end local function readyToAttack(now, knifeMode) local st = getControllerState(now) if knifeMode then if WeaponState and st and type(WeaponState.canSwing) == "function" then local ok, can = pcall(WeaponState.canSwing, st, now) if ok and not can then return false, st end end return true, st end if st then if st.equipped ~= "Sniper" or st.reloadEndsAt ~= nil or st.ammo <= 0 then return false, st end if type(st.equipReadyAt) == "number" and now < st.equipReadyAt then return false, st end if type(st.nextShotAt) == "number" and now < st.nextShotAt then return false, st end if WeaponState and type(WeaponState.canFire) == "function" then local ok, can = pcall(WeaponState.canFire, st, now) if ok and not can then return false, st end end end return true, st end local currentTargetPart = nil if S.SilentAim and type(hookfunction) == "function" and ShotRules then if type(ShotRules.trace) == "function" then local origTrace origTrace = hookfunction(ShotRules.trace, function(origin, dir, ignoreList, ...) if S.Enabled and not menuOpen and not escapeHeld and currentTargetPart and currentTargetPart.Parent then local pos = currentTargetPart.Position local delta = pos - origin if delta.Magnitude > 0.001 then return { blockedByBarrel = false, endPosition = pos, hitPart = currentTargetPart, normal = -delta.Unit, } end end return origTrace(origin, dir, ignoreList, ...) end) end if type(ShotRules.assist) == "function" then local origAssist origAssist = hookfunction(ShotRules.assist, function(origin, dir, maxDist, ignoreList, ...) if S.Enabled and not menuOpen and not escapeHeld and currentTargetPart and currentTargetPart.Parent then return currentTargetPart, currentTargetPart.Position end return origAssist(origin, dir, maxDist, ignoreList, ...) end) end end local chams = {} local seenModels = {} local function getCham(model) local c = chams[model] if c and c.Parent then return c end c = Instance.new("Highlight") c.FillColor = S.BoxColor c.OutlineColor = Color3.fromRGB(255, 255, 255) c.FillTransparency = 0.65 c.OutlineTransparency = 0 c.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop c.Parent = model c.Adornee = model chams[model] = c return c end local function updateEsp(myChar, myTeamAttr, myTeamRef, cam, now) if not S.EspEnabled or not S.Chams or not cam then return end table.clear(seenModels) local camPos = cam.CFrame.Position local maxDistSq = S.Range * S.Range for _, m in ipairs(combatantList(now)) do local hum, _, root = getModelParts(m) if isEnemy(m, myChar, myTeamAttr, myTeamRef, hum) and root and root:IsA("BasePart") then local delta = root.Position - camPos local dSq = delta.X * delta.X + delta.Y * delta.Y + delta.Z * delta.Z if dSq <= maxDistSq then seenModels[m] = true local c = getCham(m) if c.Adornee ~= m then c.Parent = m c.Adornee = m end if not c.Enabled then c.Enabled = true end end end end for m, c in pairs(chams) do if not seenModels[m] then if c.Parent then c.Enabled = false else chams[m] = nil end end end end local function pulseAttack(knifeMode, targetPart, st, now) if isMenuActive() then releaseMouse1() return end if knifeMode then setKnifeMode(true, now) st = st or getControllerState(now) if WeaponState and st then if type(WeaponState.startSwing) == "function" then pcall(WeaponState.startSwing, st, now) end if targetPart and type(WeaponState.claimSwingHit) == "function" then pcall(WeaponState.claimSwingHit, st, targetPart, now) end end else setKnifeMode(false, now) end if hasMouse1Press and not isMouseHeld then isMouseHeld = true pcall(mouse1press) if hasMouse1Release then task.delay(0.02, releaseMouse1) end end end local lastFire = 0 local lastEsp = 0 local lastScan = 0 local bestPart = nil local bestKnife = false local function pickTarget(eye, myChar, myTeamAttr, myTeamRef, cam, now) local foundPart, bestSq = nil, S.Range * S.Range local foundKnife = false local fallbackPart, fallbackSq = nil, S.Range * S.Range local fallbackKnife = false for _, m in ipairs(combatantList(now)) do local hum, part, root = getModelParts(m) if isEnemy(m, myChar, myTeamAttr, myTeamRef, hum) and part and part:IsA("BasePart") then local pos = part.Position local delta = pos - eye local dSq = delta.X * delta.X + delta.Y * delta.Y + delta.Z * delta.Z if dSq < bestSq and (not S.WallCheck or hasLos(eye, pos, myChar, cam)) then bestSq = dSq foundPart = part foundKnife = isLastKillTarget(m, hum) elseif S.WallCheck and dSq < fallbackSq and root and root ~= part and root:IsA("BasePart") and hasLos(eye, root.Position, myChar, cam) then fallbackSq = dSq fallbackPart = root fallbackKnife = isLastKillTarget(m, hum) end end end if foundPart then return foundPart, foundKnife end return fallbackPart, fallbackKnife end local myCharCached, myHum, myRoot = nil, nil, nil local function refreshMyChar() myCharCached = LocalPlayer.Character myHum = myCharCached and myCharCached:FindFirstChildOfClass("Humanoid") myRoot = myCharCached and myCharCached:FindFirstChild("HumanoidRootPart") end if LocalPlayer then LocalPlayer.CharacterAdded:Connect(function() task.defer(refreshMyChar) end) LocalPlayer.CharacterRemoving:Connect(function() myCharCached, myHum, myRoot = nil, nil, nil end) end local function stopEverything() releaseMouse1() setKnifeMode(false) currentTargetPart = nil bestPart = nil bestKnife = false end local lastWarn = 0 local function tick() local now = os.clock() local myChar = LocalPlayer.Character if myChar ~= myCharCached or not myHum or not myHum.Parent or not myRoot or not myRoot.Parent then refreshMyChar() end if not S.Enabled or isMenuActive() then if isMouseHeld or knifeLatched or bestPart then stopEverything() end return end if not myHum or myHum.Health <= 0 or not myRoot then if isMouseHeld or knifeLatched or bestPart then stopEverything() end return end local cam = Workspace.CurrentCamera local myTeamAttr = myChar:GetAttribute("Team") local myTeamRef = LocalPlayer.Team if S.EspEnabled and now - lastEsp >= S.EspRate then lastEsp = now updateEsp(myChar, myTeamAttr, myTeamRef, cam, now) end if now - lastScan >= S.ScanRate then lastScan = now local eye = myRoot.Position + EYE bestPart, bestKnife = pickTarget(eye, myChar, myTeamAttr, myTeamRef, cam, now) currentTargetPart = bestPart end if bestPart and bestPart.Parent then currentTargetPart = bestPart if S.Triggerbot then local eye = myRoot.Position + EYE local dist = (bestPart.Position - eye).Magnitude local useKnife = bestKnife and (dist <= S.KnifeRange) local activeDelay = useKnife and S.KnifeDelay or S.Delay if now - lastFire >= activeDelay then if S.WallCheck and not hasLos(eye, bestPart.Position, myChar, cam) then bestPart = nil currentTargetPart = nil lastScan = 0 else local canFire, st = readyToAttack(now, useKnife) if canFire then pulseAttack(useKnife, bestPart, st, now) lastFire = now end end end elseif isMouseHeld or knifeLatched then releaseMouse1() setKnifeMode(false, now) end else currentTargetPart = nil if S.Triggerbot and (isMouseHeld or knifeLatched) then releaseMouse1() setKnifeMode(false, now) end end end task.spawn(function() while true do local ok, err = pcall(tick) if not ok then local now = os.clock() if now - lastWarn > 5 then lastWarn = now warn("[aim] " .. tostring(err)) end end task.wait(S.TickRate) end end)