Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --DO NOT USE IT TO TRANSLATE , IT BREAKS EVERYTHING YOU LEARNED IF USED TO TRANSLATE AND REMEMBER please remember this and please promise with me
- --this is only en - jp i promise ...
- --to add, en , jp , killfromthisscript
- local W={}
- W[1]={"hello","こんにちは"}
- W[2]={"world","世界"}
- W[3]={"i","私"}
- W[4]={"am","は"}
- W[5]={"im","私は"}
- W[6]={"you","あなた"}
- W[7]={"your","あなたの"}
- W[8]={"are","は"}
- W[9]={"is","は"}
- W[10]={"this","これ"}
- W[11]={"that","あれ"}
- W[12]={"he","彼"}W[13]={"his","彼の"}W[14]={"him","彼"} --after this im tired to add
- local function add(en,jp,isfilt)
- table.insert(W,{en,jp,isfilt})
- end
- if 1 then --normals
- add("she","彼女")add("her","彼女の")add("hers","彼女の")add("the","")add("me","私の")
- add("there","これらの")add("those","それらの")add("which","どれの")add("item","もの")add("items","もの")
- add("newbie","初心者")add("beginner","初心者")add("screen","画面")
- add("what","なぜ")add("which","どちらの")add("where","どこ")add("whose","誰の")add("how","なぜ")
- add("when","いつ")
- end
- if 1 then --if
- add("u","あなた")add("ur","あなたの")add("urs","あなたの")add("noob","初心者")add("nub","初心者")
- end
- local illegal={"!",".",","}--i remove them for some reason
- local loopstop=256 --to doesn't break roblox by inf loop
- local ply=game:service("Players").LocalPlayer
- function ConvertReq(word)word=game:service("Chat"):FilterStringAsync(word,ply,ply)
- word=word.." "
- word=string.lower(word)
- --print(word)
- local cut={}local cp=1
- local num=0
- local loop=0
- local built=""
- while loop<loopstop do
- loop=loop+1
- if word==""then break end
- for i=1,word:len()do
- local eflg=false for i2 in pairs(illegal)do if word:sub(i,i)==illegal[i2]then eflg=true end end
- if word:sub(i,i)~=" "and word:sub(i,i)~=string.char(10)and word:sub(i,i)~=""and eflg~=true then
- built=built..word:sub(i,i)
- --print(word:sub(i,i))
- else
- word=word:sub(i+1)
- --print(built)
- cut[num]=built num=num+1
- built=""--print("-----------------")
- break
- end
- end
- end
- for i=1,#cut do local ct=""for i2=1,cut[i]:len()do
- if cut[i]:sub(i2,i2)~=" "then ct=ct..cut[i]:sub(i2,i2)end
- end end
- for i=0,#cut do
- print(cut[i])
- end
- --checking
- local fword=""
- for i=0,#cut do local isf=false
- for i2,w in pairs(W)do
- if W[i2][1]==cut[i]then
- if W[i2][3]then fword=fword.."#検閲されました#"isf=true else
- fword=fword..W[i2][2]isf=true end
- end
- end
- if not isf then fword=fword..cut[i]end
- end
- print(fword)
- end
- ConvertReq("hello world! im")
- game.Players.LocalPlayer.Chatted:connect(function(m)ConvertReq(m)end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement