-- ModuleScript: ServerScriptService > BoostConfig local Config = { RequiredCoins = 3, Radius = 12, Speed = 28, Duration = 5, Cooldown = 20, RequestInterval = 0.5, } local function finiteNumber(value) return typeof(value) == "number" and value == value and math.abs(value) < math.huge end for key, value in pairs(Config) do assert(finiteNumber(value), key .. " must be a finite number") end assert(Config.RequiredCoins >= 0 and Config.RequiredCoins % 1 == 0, "RequiredCoins must be a nonnegative integer") assert(Config.Radius > 0 and Config.Radius <= 30, "Radius must be in (0, 30]") assert(Config.Speed > 0 and Config.Speed <= 40, "Speed must be in (0, 40]") assert(Config.Duration > 0, "Duration must be positive") assert(Config.Cooldown >= Config.Duration, "Cooldown must cover Duration") assert(Config.RequestInterval >= 0.1, "RequestInterval must be at least 0.1") return table.freeze(Config)