Skip to content

addbind

Toon edited this page Jan 5, 2026 · 2 revisions

Documentation

void addbind(<string> cmd, <string> key)

Description

Binds cmd to key key. The value of key should be tostring(Enum.KeyCode.KEY)).

Example

-- Note: This is just a snippet
-- This would add a new bind that toggles swim with the C key.
["Function"] = function(args, speaker)
    addbind("toggleswim", tostring(Enum.KeyCode.C))
end

Clone this wiki locally