KitStd
The Welcome To Hell Kit Standard Library is contains many utilities, including types like Attribute, In addition to the Welcome To Hell API which is bundled as part of the kit, the game also provides this sibling package that contains a set of utilities to streamline common patterns and operations used in Mechanics.
local ReplicatedStorage = game:GetService("ReplicatedStorage")local std = require(ReplicatedStorage:WaitForChild("KitStd"))Properties
Section titled “Properties”activation
Section titled “activation”KitStd.activation: KitStdActivationActivation utilities.
animation
Section titled “animation”KitStd.animation: unknownAnimation utilities including tweens.
assets
Section titled “assets”KitStd.assets: unknownImage and sound assets used by Welcome To Hell.
KitStd.audio: unknownAudio utilities.
bindings
Section titled “bindings”KitStd.bindings: KitStdBindingsBindings to Welcome To Hell’s controllers.
character
Section titled “character”KitStd.character: unknownCharacter utilities.
collections
Section titled “collections”KitStd.collections: unknownMath utilities.
collections
Section titled “collections”KitStd.collections: unknownCollection utilities and implementations.
KitStd.color: unknownColor utilities.
logger
Section titled “logger”KitStd.logger: unknownLogger implementation.
physics
Section titled “physics”KitStd.physics: unknownPhysic utilities.
prelude
Section titled “prelude”KitStd.prelude: KitStdPreludeReference to the prelude, the list of things that most KitScripts will use, and is kept as small as possible.
KitStd.touch: unknownTouch utilities.
version
Section titled “version”KitStd.version: stringThe current version of the Kit Standard Library.
Functions
Section titled “Functions”function KitStd.never(...: never): neverNever returns. This is most useful when preventing bugs relating to not properly matching every value, ie:
type Color = "red" | "blue" | "green"local function setColor(color: Color) if color == "red" then -- red elseif color == "blue" then -- blue else -- TYPE ERROR! You forgot to match "green". std.never(color) endendParameters
Section titled “Parameters”… : never
Section titled “… : never”Any value that should never exist.
Returns
Section titled “Returns”Will error if a value supposedly never meant to exist, well, exists.`
roundColor
Section titled “roundColor”function KitStd.roundColor(color: Color3): Color3Parameters
Section titled “Parameters”color : Color3
Section titled “color : Color3”Returns
Section titled “Returns”Color3
Section titled “Color3”`