Skip to main content

Configuration

Example Config File

We provided you with an example configuration file if needed.

SpawnerConfig
--!strict
local Typings = require(game:GetService'ReplicatedStorage'.Spawner.SpawnerTypings);

--[[

ONLY EDIT THE CONFIG TABLE!

Need help? Visit

https://huxleysales.github.io/docs/spawner/config
or join https://discord.gg/yHH2cynGzD

]]

local config: Typings.Config = {
theme = {
title = "My Spawner",
colorScheme = "dark",
logoImageId = 9428951785,
},

categories = {
Category1 = {
title = "Spawn Bus",
categoryType = "open",
},
},

groupSettings = {
enabled = false,
groupId = 16419590,
minimumSpawnerRank = 0,
minimumAdminRank = 250,
allowVipOwnersServerAdmin = false
},

webhookSettings = {
enabled = true,
receiver = "discord",
webhookServerUrl = "",
webhookClientUrl = "",
bodies = {
onSpawn = {
username = "{{spawnerTitle}}",
embeds = {
{
title = "**Bus Spawned**",
description = "A bus was spawned",
color = tonumber(0x9acd32),
author = {
name = "{{spawnerTitle}}"
},
thumbnail = {
url = "{{userAvatarHeadShot}}"
},
fields = {
{
name = "Bus Spawned",
value = "{{busNumber}}",
},
{
name = "Bus Spawned by",
value = "[{{displayName}} (@{{username}})](https://roblox.com/users/{{userId}}/profile)"
},
{
name = "Bus Spawned at",
value = "<t:{{timestamp}}> (<t:{{timestamp}}:R>)"
}
}
}
}
},
onDespawn = {
username = "{{spawnerTitle}}",
embeds = {
{
title = "**Bus Despawned**",
description = "A bus was despawned",
author = {
name = "{{spawnerTitle}}"
},
thumbnail = {
url = "{{userAvatarHeadShot}}"
},
color = tonumber(0x3c78d8),
fields = {
{
name = "Bus Despawned",
value = "{{busNumber}}"
},
{
name = "Bus Despawned by",
value = "[{{displayName}} (@{{username}})](https://roblox.com/users/{{userId}}/profile)"
},
{
name = "Bus Despawned at",
value = "<t:{{timestamp}}> (<t:{{timestamp}}:R>)"
}
}
}
}
},
onMessage = {
username = "{{spawnerTitle}}",
embeds = {
{
title = "**notification Broadcasted**",
description = "Someone sent a notification!",
color = tonumber(0x3c78d8),
author = {
name = "{{spawnerTitle}}"
},
thumbnail = {
url = "{{userAvatarHeadShot}}"
},
fields = {
{
name = "notifiction Broadcasted by",
value = "[{{displayName}} (@{{username}})](https://roblox.com/users/{{userId}}/profile)"
},
{
name = "notification Broadcasted at",
value = "<t:{{timestamp}}> (<t:{{timestamp}}:R>)"
},
{
name = "notification Type",
value = "{{messageType}}"
},
{
name = "notification",
value = "{{message}}"
}
}
}
}
},
onAdmin = {
username = "{{spawnerTitle}}",
embeds = {
{
title = "**Administrative Action**",
description = "Someone executed something on the admin panel",
color = tonumber(0xff4848),
author = {
name = "{{spawnerTitle}}"
},
fields = {
{
name = "Executed by",
value = "[{{displayName}} (@{{username}})](https://roblox.com/users/{{userId}}/profile)"
},
{
name = "Executed at",
value = "<t:{{timestamp}}> (<t:{{timestamp}}:R>)"
},
{
name = "Executed towards",
value = "[{{moderatedDisplayName}} (@{{moderatedUsername}})](https://roblox.com/users/{{moderatedUserId}}/profile)"
},
{
name = "Action",
value = "{{action}}"
},
{
name = "Reason",
value = "{{reason}}"
}
}
}
}
}
}
},

busModelsLocation = game.ServerStorage.BusModels,
depsawnonPlayerLeave = false,
teleportPlayerToBus = false,
busModelSpawnType = "basic"
}

return config;

Configuration Options

Basic Configuration Options

NameDescriptionTypeValue ChoicesDefaultValue
themeIncludes all the data for your theme such as a title, custom logo image, and color themes! (Blue & Dark Theme are the best 😎)ThemeConfigView this for value choices
categoriesIncludes all the data about the different categories.CategoryConfigsView this for value choices
groupSettingsIncludes all the data about your group and group settings for the spawner.GroupConfigView this for value choices
webhookSettingsIncludes all the data about your webhook settings for the spawner.WebhookConfigView this for value choices
busModelsLocationIf you want to add more spawner categories (up-to 3 extra).Path to FolderAny folder in gamegame.ServerStorage.BusModels
depsawnonPlayerLeaveIf you want a spawned bus to despawn when the associated player leaves the gamebooleantrue/falsefalse
teleportPlayerToBusIf you want to teleport a player to their bus when they spawn itbooleantrue/falsefalse
busModelSpawnTypeThe method of spawning a bus - if using advanced, see Advanced Spawningstring"basic"/"advanced""basic"

Theme Configuration Options

NameDescriptionTypeValue ChoicesDefaultValue
titleIncludes all the data for your theme such as a title, custom logo image, and color themes! (Blue & Dark Theme are the best 😎)stringAny string"My Spawner"
colorSchemeIncludes all the data about the different categories.string"light"/"dark"/"blue""dark"
logoImageIdIncludes all the data about your group and group settings for the spawner.numberAny number9428951785

Category Configuration Options

Categories

NameRequiredDescriptionType
Category1yesIncludes all the data for Category1CategoryConfig
Category2noIncludes all the data for Category2CategoryConfig
Category3noIncludes all the data for Category3CategoryConfig
Category4noIncludes all the data for Category4CategoryConfig
Category5noIncludes all the data for Category4CategoryConfig

Category

NameRequiredDescriptionTypeValue ChoicesDefaultValue
titleyesTitle of this categorystringAny stringnil unless first - then "Spawn Bus"
categoryTypeyesThe Category TypenumberCategoryTypeOptionnil unless first - then "open"
assetIdnoThe asset ID to access this categorynumberAny numbernil
mypodProductnoThe Product Name for your mypod hub to access this categorystringAny Stringnil
minimumRanknoMinimum Group Rank to access this categorynumberAny numbernil

Group Configuration Options

NameDescriptionTypeValue ChoicesDefaultValue
enabledIf any of these group features should be usedbooleantrue/falsefalse
groupIdThe ID of the Roblox GroupnumberAny number13299030
minimumSpawnerRankMinimum Group Rank to see the spawnernumberAny number1
minimumAdminRankMinimum Group Rank to see the admin panelnumberAny number255
allowVipOwnersServerAdminIf VIP Server Owners should see the admin panelbooleantrue/falsefalse

Webhook Configuration Options

NameDescriptionTypeValue ChoicesDefaultValue
enabledIf any of these webhook features should be usedbooleantrue/falsefalse
receiverWhat system is receiving the webhook (most likely discord)number"discord"
webhookServerUrlThe Server/Service URL for the WebhookstringAny string""
webhookServerUrlThe Webhook URLstringAny string""
bodiesThe templates/bodies[string]: Any object
bodies

You should not touch the names of the bodies (onSpawn, onMessage, etc...) but you can touch the contents inside of those names.

tip