Your first script could be as simple as setProperty('health', 1.0) to start a song at full health. Your hundredth script might be a full RPG battle system played through rhythm notes.
Documented versions of auto-player logic often found on Scribd for those looking to study the raw Lua code. Basically FNF Script
Always test with a console open. Psych Engine prints errors to a log file ( FNF_log.txt ) or an in-game debug overlay (press F3). Your first script could be as simple as
Using onCreate() you can preload dialogue boxes: Basically FNF Script
Most players find these via script hubs or community-vetted sites:
function onNoteHit(id, direction, noteType, isSustainNote) if noteType == 'HealNote' then setProperty('health', getProperty('health') + 0.1) playSound('healSound') return true end return false end