|
1 | | -Using a good executor is sufficient, and you need to be holding a tool in your hand for it to work. |
| 1 | +<div align="center"> |
| 2 | + |
| 3 | +<!-- Oyun içinden aldığın yatay bir ekran görüntüsünü veya kapak görselini buraya ekle --> |
| 4 | +<img src="./assets/banner.png" alt="Notoriety Script Banner" width="100%" /> |
| 5 | + |
| 6 | +<h1>Notoriety — Auto Kill All</h1> |
| 7 | + |
| 8 | +<p> |
| 9 | + Lightweight toggleable NPC kill-all script for <b>Notoriety: A PAYDAY Experience</b>. |
| 10 | +</p> |
| 11 | + |
| 12 | +<p> |
| 13 | + <img src="https://img.shields.io/badge/Game-Notoriety-b91c1c?style=for-the-badge&logo=roblox&logoColor=white" alt="Game" /> |
| 14 | + <img src="https://img.shields.io/badge/Language-Luau-18181b?style=for-the-badge&logo=lua&logoColor=white" alt="Luau" /> |
| 15 | + <img src="https://img.shields.io/github/last-commit/goktug3131/Notoriety-A-PAYDAY-Experienc-Script?style=for-the-badge&color=b91c1c&labelColor=18181b" alt="Last Commit" /> |
| 16 | +</p> |
| 17 | + |
| 18 | +</div> |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +## Preview |
| 23 | + |
| 24 | +<!-- Oyun içi çalışırken çektiğin kısa bir GIF veya SS linkini buraya bırak --> |
| 25 | +<div align="center"> |
| 26 | + <img src="./assets/preview.gif" alt="In-game preview" width="85%" /> |
| 27 | +</div> |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +## Usage |
| 32 | + |
| 33 | +Run the script once to turn it **ON**, execute it again to turn it **OFF**. |
| 34 | + |
| 35 | +```lua |
| 36 | +loadstring(game:HttpGet("[https://raw.githubusercontent.com/goktug3131/Notoriety-A-PAYDAY-Experienc-Script/main/script.lua](https://raw.githubusercontent.com/goktug3131/Notoriety-A-PAYDAY-Experienc-Script/main/script.lua)"))() |
| 37 | +``` |
| 38 | + |
| 39 | +> **Requirement:** You need to have any `Tool` (weapon/item) equipped in your hand for the damage loop to trigger. |
| 40 | +
|
| 41 | +--- |
| 42 | + |
| 43 | +## What it does |
| 44 | + |
| 45 | +- **Toggleable state** — Uses `getgenv().kill_all` and cleanly disconnects the `DescendantAdded` listener when turned off. |
| 46 | +- **Live enemy tracking** — Scans existing NPCs on startup and catches newly spawned units (cops, SWAT, specials, etc.) as they enter `Workspace`. |
| 47 | +- **Safe filtering** — Skips your character, other players, hostages, civilians, and friendly NPCs automatically. |
| 48 | +- **2-second spawn buffer** — Waits 2 seconds after an enemy spawns before firing, avoiding broken/unloaded hits. |
| 49 | +- **Hitbox fallback** — Targets `Head` first, falling back to `HumanoidRootPart`, `UpperTorso`, or `Torso`. |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +## Configuration |
| 54 | + |
| 55 | +If you are editing the source locally, these are the main values at the top of the script: |
| 56 | + |
| 57 | +| Variable | Default | Description | |
| 58 | +| :--- | :--- | :--- | |
| 59 | +| `DELAY_SECONDS` | `2` | Time (in seconds) to wait after an enemy spawns before hitting it. | |
| 60 | +| `IGNORED_NAMES` | `citizen`, `civilian`, `hostage`, `criminal`, `ally`, `teammate`, `friendly` | Name filters checked up the instance hierarchy to avoid hitting non-hostiles. | |
| 61 | +| Loop interval | `0.15s` | Tick rate of the main `while` loop (`task.wait(0.15)`). | |
| 62 | + |
| 63 | +--- |
| 64 | + |
| 65 | +## Notes |
| 66 | + |
| 67 | +- Tested with `ReplicatedStorage.RS_Package.Assets.Remotes.Damage`. If the game updates its remote path or argument structure, the `FireServer` call will need to be adjusted. |
| 68 | +- Keep a weapon equipped while active; unequipping pauses damage without stopping enemy tracking. |
0 commit comments