My goal is to create a little popup gui at the bottom of the chat box that tells you what command is closest to what you’re typing, an example of what I’m trying to achieve would be the chat in FiveM if any of you are familiar, I will attach an image of it
I think the roblox chat bar is in Client GUI so you need to do something like this
local chatBar = ...;
chatBar.Focused:Connect(function()
end)
And to check for commands just do something like this:
local commandTable = {"example"};
local chatBarText;
local filteredCommandsTable = {};
for q,w in commandTable do
if string.find(w,chatBarText) then
table.insert(filteredCommandsTable,w)
end
end
local commandDescriptionGUI;
for q,w in filteredCommandsTable do
local Description = Instance.new("TextLabel",commandDescriptionGUI)
Description.Text = w
end
1 Like