Skip to content

Round Types

Reference for built-in round types and instructions for creating your own.

Built-in types

IDNameDescription
0normalNormal round
1springtrapOne player gets Springtrap
2bonnie_tagHalf of the players become Bonnie. After a screamer, players swap roles
3bear5Infection round with Bear5

Get the current round type:

lua
if fh.GetRoundType() == 1 then
    print("Springtrap round is underway!")
end

Creating your own round type

See full documentation: Rounds →

Quick example:

lua
fh.RegisterRoundType("golden_madness", "GFmadness", function()
	local players = player.GetAll()
		
	players = fh.GetEarnedKillers(players)
	
	if players then
		local chosenPlayer = players[1]
		
		-- Spawn Golden Freddy Head
		giveKiller(chosenPlayer, "pill_wgfreddyhead2", true)
		
		chosenPlayer.lobbyFreeze = true
		chosenPlayer:ReturnToSpawn()
	end
	
	RandomTaser()
	
	freezeAnimatronics()
end, 3, 6, 18)

Parameters:

  • weight = 3 — 3% chance
  • minPlayers = 6 — minimum 6 players
  • maxPlayers = 18 — maximum 18

Round start music

lua
fh.AddRoundMusic(
    fh.GetRoundTypeByName("golden_madness"),
    "music/my_addon/golden_theme.mp3"
)

Round hooks

All hooks related to round stages: Round hooks →