You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local fullCmdStr = string.match(nText, `.*{batchKey}([^']+)`)
750
+
if fullCmdStr then
751
+
nText = string.match(fullCmdStr, "^%s*(.-)%s*$")
752
752
end
753
753
754
-
local pNum = 0
755
-
local pMatch = string.match(nText, `.+{splitKey}(.*)$`)
756
-
for _, v in service.Players:GetPlayers() do
757
-
if (pMatch and string.sub(string.lower(tostring(v)),1,#pMatch) == string.lower(pMatch)) or string.match(nText,`{splitKey}$`) then
758
-
local new = entry:Clone()
759
-
new.Text = tostring(v)
760
-
new.Name = `Entry {pNum}`
761
-
new.TextXAlignment = "Right"
762
-
new.Visible = true
763
-
new.Parent = players
764
-
new.Position = UDim2.new(0,0,0,20*pNum)
765
-
new.MouseButton1Down:Connect(function()
766
-
text.Text = text.Text..tostring(v)
767
-
text:CaptureFocus()
768
-
end)
769
-
pNum += 1
770
-
end
771
-
end
772
-
773
-
players.CanvasSize = UDim2.new(0,0,0,pNum*20)
774
-
775
754
local num = 0
755
+
local selectedCmd = ""
776
756
for _, v in commands do
777
-
if string.sub(string.lower(v),1,#nText) == string.lower(nText) or string.find(string.lower(v), string.match(string.lower(nText), `^(.-){splitKey}`) or string.lower(nText), 1, true) then
757
+
local cmdName = string.match(string.lower(nText), `^(.-){splitKey}`) or string.lower(nText)
758
+
if string.sub(string.lower(v), 1, #nText) == string.lower(nText) or string.find(string.lower(v), cmdName, 1, true) then
0 commit comments