local LETTERS = {
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"0",
"+",
"-",
"/",
"*",
".",
}
local WORDS = {
"math",
}
for i,v in pairs(math) do
table.insert(WORDS,i)
end
script.Parent:GetPropertyChangedSignal("Text"):Connect(function()
for i=1,#script.Parent.Text do
local v = string.sub(script.Parent.Text,i,i)
if table.find(LETTERS,v) == nil then
for _,vv in pairs(WORDS) do
if string.match(script.Parent.Text,vv) then
local let = string.gsub(script.Parent.Text,v,"")
script.Parent.Text = let
end
end
end
end
end)
so I want it to detect if the words and letters match the 2 tables