Scripts

Project Afternight Autoplay Scripts

Public SetAutoplay snippets, hubs, and the limits that keep shop toasts from firing.

Last updated:

Autoplay Scripts

This page is the working list of Project Afternight autoplay snippets. Pair it with the scripts hub for context and script safety before you inject. None of these are official. All of them assume an executor that can see Luau tables through getgc.

1. Persistent SetAutoplay loop

Use this when you do not want to re-execute after every song. Community reports: leaderboard score, PFC, and MFC may not increment. Cosmetics that need a real 70% pass can fail. Practice tool, not a farm.

function getGameFramework()
  for _, v in next, getgc(true) do
    if type(v) == 'table' and rawget(v, 'SetAutoplay') then
      return v
    end
  end
end
local framework = getGameFramework()
if framework then
  spawn(function()
    while true do
      framework.SetAutoplay(true)
      wait(1)
    end
  end)
end

2. One-shot botplay (execute mid-song)

Smallest possible call. Execute after the chart is running. Too early can kick.

function getGameFramework()
  for _, v in next, getgc(true) do
    if type(v) == 'table' and rawget(v, 'SetAutoplay') then
      return v
    end
  end
end
getGameFramework().SetAutoplay(true)

If this nils, the engine hid SetAutoplay or your executor has no getgc. Stop. Do not loop a broken call.

3. Wrapped auto player loadstring

A key-system hub bumped in August 2026. Paste in your executor, complete the key if you accept that risk, then load into a song.

loadstring(game:HttpGet("https://rawscripts.net/raw/Project:-Afternight-Auto-Player-223531"))()

4. Older PA autoplayer loadstring

Same family, older bump, still listed as unpatched on some indexes.

loadstring(game:HttpGet("https://rawscripts.net/raw/Project:-Afternight-PA-autoplayer-34960"))()

5. Unprotected API botplay loadstring

loadstring(game:HttpGet("https://rawscripts.net/raw/UPDATE-1-Project:-Afternight-unprotected-api-botplay-20503"))()

6. Rayfield window (botplay + multiplayer button)

A small hub with two buttons: activate botplay (loop) and autoplayer in multiplayer (one-shot). No key in the published paste.

loadstring(game:HttpGet("https://pastebin.com/raw/1ykV1GmP"))()

Expect a Rayfield window named HolesHub. If the UI appears and then the client freezes, that is a known complaint — drop the hub and use snippet 1 or 2.

Timing and versus

  • Solo: execute once the countdown ends, or use the loop before you pick the song.
  • Versus: several authors say wait 3–5 seconds after the chart starts. Instant execute is the kick pattern.
  • Reset / leave stage: most snippets die. Re-execute. Versus modes covers leaving a stage when the opponent’s pick is garbage.

Autoplay will not magically pass 9-key or 18-key charts your FPS cannot render. Keybinds and song tiers still matter if you actually want to play those files.

Shop, codes, and why this is a bad farm

How rewards work wants 70% at 1x with modcharts on. Hidden autoplay that never writes accuracy is a cosmetic brick wall. It also will not redeem a code, because there is nothing to redeem — see the codes hub.

If you are here to learn a pattern, you will learn nothing. Use accuracy and FC, lower note speed in settings, and play the chart.

Patched novelty names (AfterFallacy and similar) are omitted on purpose. If a loadstring 404s, delete it from your notepad. This page will track replacements when a new public snippet is actually callable.

FAQ

Frequently Asked Questions

Quick answers to the most common questions.

Which snippet is the least noisy?

The mid-song one-shot. The loop is for multi-song sessions. Safety notes: script safety.

Why is my PFC not counting?

The persistent loop is known to skip score and combo credit. Play a clean pass if you need shop unlocks.

Do I re-execute after every song?

One-shot yes. Loop no, until you reset or the framework table is gone.

Can I use this on mobile?

Only with a mobile executor that supports getgc. Many key UIs break on touch — see script safety.