toggle
Lets you create a toggle in a section
local combat = window:Page({Name = "Combat", Icon = "rbxassetid://0"});
local main_combat = combat:Section({Name = "Main", Side = "Left", Size = 100});
local toggle = main_combat:Toggle({
Name = "Kill",
Flag = "kill_state",
Default = false, -- if no default is provided it will default to false
Callback = function(state)
print(`Kill is now {state}`)
end,
})
Methods
Toggle:SetState(true / false)
Toggle:SetText("New text")
Toggle:SetCallback(function() end)
Last updated