-- BotSelectUI (client only) -- Shows the bot selection screen before a round starts. -- Calls onSelect(botName) when the player confirms their choice. local BotSelectUI = {} -- TODO: reference your ScreenGui here -- local gui = playerGui:WaitForChild("BotSelectScreen") local selected = nil local onSelect = nil function BotSelectUI.show(selectCallback) onSelect = selectCallback selected = nil -- TODO: make gui visible -- TODO: populate the 3 bot cards from BotData (name, hp, weight, accuracy, special description) end function BotSelectUI.hide() -- TODO: make gui invisible end -- Called by each bot card's select button function BotSelectUI.pickBot(botName) selected = botName -- TODO: highlight the selected card, dim the others end -- Called by the Confirm button function BotSelectUI.confirm() if not selected then return end -- nothing picked yet if onSelect then onSelect(selected) end BotSelectUI.hide() end return BotSelectUI