So, I am making a game where you will get a lot of things in your inventory so I need a search filter to search through the basic inventory. How should I make this?
You can take inspiration from a reply I gave to a similar post:
You’ll need an array of the commands your system has. Preferably one built entirely out of strings which represent the command names. As the user inputs text, use TextBox:GetPropertyChangedSignal(“Text”) to generate an RBXScriptSignal (event) to detect each individual input. From here, you have two options:
Build a function that iterates through each command and collects the commands that begin with the given prefix, where the given prefix is the current set state of TextBox.Text :
local funct…
system
(system)
Closed
February 3, 2025, 6:27am
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.