local basalt = require("basalt") -- Get the main frame (your window) local main = basalt.getMainFrame() -- Add a button main:addButton() :setText("Click me!") :setPosition(4, 4) :onClick(function(self) self:setText("Clicked!") end) -- Start Basalt (starts the event loop) basalt.run()