addbind - EdgeIY/infiniteyield GitHub Wiki

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
⚠️ **GitHub.com Fallback** ⚠️