Well, basically the items that are searched with the search bar script, are in Spanish … I want that if you look for the item with its specific word in English, you can find it, for example:
Item: Agua (Tool) = Water --Here I want to imply that it looks for the same if the word is the same in the other language–
local SearchButton = script.Parent
local Handler = script.Parent.Parent:WaitForChild("Handler")
SearchButton:GetPropertyChangedSignal("Text"):Connect(function()
wait(0.3)
local Search = string.lower(SearchButton.Text)
for index, Items in pairs(Handler:GetChildren()) do
if Items:IsA("ImageButton") then
if Search ~= "" then
local SelectedItem = string.lower(Items.NameItem.Value)
if string.find(SelectedItem, Search) then
Items.Visible = true
else
Items.Visible = false
end
else
Items.Visible = true
end
end
end
end)