Skip to content

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"))
KitStd.activation: KitStdActivation

Activation utilities.

KitStd.animation: unknown

Animation utilities including tweens.

KitStd.assets: unknown

Image and sound assets used by Welcome To Hell.

KitStd.audio: unknown

Audio utilities.

KitStd.bindings: KitStdBindings

Bindings to Welcome To Hell’s controllers.

KitStd.character: unknown

Character utilities.

KitStd.collections: unknown

Math utilities.

KitStd.collections: unknown

Collection utilities and implementations.

KitStd.color: unknown

Color utilities.

KitStd.logger: unknown

Logger implementation.

KitStd.physics: unknown

Physic utilities.

KitStd.prelude: KitStdPrelude

Reference to the prelude, the list of things that most KitScripts will use, and is kept as small as possible.

KitStd.touch: unknown

Touch utilities.

KitStd.version: string

The current version of the Kit Standard Library.

function KitStd.never(...: never): never

Never 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)
end
end

Any value that should never exist.

Will error if a value supposedly never meant to exist, well, exists.`


function KitStd.roundColor(color: Color3): Color3

`