keybind

Let's you create a new keybind in a section

local combat = window:Page({Name = "Combat", Icon = "rbxassetid://0"});
local main_combat = combat:Section({Name = "Main", Side = "Left", Size = 100});

local key_bind = main_combat:Keybind({
    Name = "Toggle",
    Flag = "Toggle",
    
    Mode = "Toggle", -- "Always", "Toggle", "Hold"
    Default = Enum.KeyCode.X,
    Callback = function(state)
        print(state)
    end
})

Methods

Keybind:SetKey(Enum.KeyCode)

Last updated