-- Quick Start -- Learn more at https://docs.infilsense.com local ui = Library.new({ Name = "Demo", SaveFolder = "DemoConfig", SaveId = "main", Theme = Library.Themes.Midnight, }) local tab = ui:CreateTab("Demo") tab:AddLabel({ Text = "Character Controls", TextSize = 15, }) tab:AddSlider({ Info = { Title = "WalkSpeed" }, InternalInfo = { UniqueCommandId = "walkspeed", Aliases = { "ws", "speed" }, }, Min = 16, Max = 100, Default = 16, Step = 1, Save = true, Callback = function(value) local character = game.Players.LocalPlayer.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid.WalkSpeed = value end end, }) tab:AddInput({ Info = { Title = "Message" }, DefaultText = "Hello", InternalInfo = { UniqueCommandId = "message", Aliases = { "msg" }, }, Callback = function(text) print("Message:", text) end, }) local target = tab:AddSelection({ Info = { Title = "Target" }, SingleSelect = true, DefaultValue = "Nearest", InternalInfo = { UniqueCommandId = "target", Aliases = { "dest" }, }, Callback = function(value) print("Selected:", value) end, }) target:AddOption({ Info = { Title = "Nearest" }, Value = "Nearest" }) target:AddOption({ Info = { Title = "Self" }, Value = "Self" })