Skip to content

Chase Music

All animatronics have their own chase theme. In this section, we will show how to give your animatronic a chase theme.

Preparing files

Fazbear's Hunt provides four chase layers:

Code nameFile nameDescription
first_layerfar.wavVery far
second_layerapproaching.wavApproaching
third_layernear.wavVery close
chasechase.wavChase

The gamemode automatically loads all files from the following path, where THEME_NAME is the name of your theme.

garrysmod/addons/my_fh_addon/
└── sound/
	└── music/chase/
		└── THEME_NAME/
			├── far.wav
			├── approaching.wav
			├── near.wav
			└── chase.wav

The next step is looping the music, which you can do with programs like Wavosaur or FL Studio.

See Looping Sounds


Adding a theme to an animatronic

There are two ways to add a chase theme to an animatronic. The first method is adding the chaseTheme value to the Pill structure.

lua
local FREDDY = GetPillTemplate()

FREDDY.printName = "Withered Freddy"

FREDDY.chaseTheme = "freddy"

See Pill Structure and Registration →

The second method is adding the theme immediately after registering the Pill.

lua
killers.Register("my_pill", ...)

if CLIENT then
	-- Your Pill name, your theme name
	terror_radius.addTheme("my_pill", "THEME_NAME")
end

Standard gamemode themes

If you don't have your own custom theme, you can assign one of the built-in themes to your Pill:

Theme nameDescription
defaultGeneral theme
freddyFreddy's theme
bonnieBonnie's theme
foxyFoxy's theme
endoEndoskeleton's theme
sfreddyShadow Freddy's theme
maskManiac Mask theme
bear5BEAR5 theme
lua
terror_radius.addTheme("my_pill", "default")