Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.91 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local MAIN = Instance.new("Frame")
  6. local TextLabel = Instance.new("TextLabel")
  7. local TextLabel_2 = Instance.new("TextLabel")
  8. local TextLabel_3 = Instance.new("TextLabel")
  9. local Frame = Instance.new("Frame")
  10. local TRANSLATE2 = Instance.new("Frame")
  11. local NAME2 = Instance.new("TextLabel")
  12. local Frame_2 = Instance.new("Frame")
  13. local Frame_3 = Instance.new("Frame")
  14. local EN2 = Instance.new("TextLabel")
  15. local TEXT2 = Instance.new("TextLabel")
  16. local TextLabel_4 = Instance.new("TextLabel")
  17. local TextLabel_5 = Instance.new("TextLabel")
  18. local TextLabel_6 = Instance.new("TextLabel")
  19. local TRANSLATE1 = Instance.new("Frame")
  20. local NAME1 = Instance.new("TextLabel")
  21. local Frame_4 = Instance.new("Frame")
  22. local Frame_5 = Instance.new("Frame")
  23. local EN1 = Instance.new("TextLabel")
  24. local TEXT1 = Instance.new("TextLabel")
  25. --Properties:
  26.  
  27. ScreenGui.Parent = game.CoreGui
  28. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29. ScreenGui.Name = "TRANSLATOR"
  30.  
  31. MAIN.Name = "MAIN"
  32. MAIN.Parent = ScreenGui
  33. MAIN.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  34. MAIN.BorderColor3 = Color3.new(1, 1, 1)
  35. MAIN.BorderSizePixel = 2
  36. MAIN.Position = UDim2.new(0.313868612, 0, 0.286432177, 0)
  37. MAIN.Size = UDim2.new(0, 407, 0, 254)
  38. MAIN.Draggable = true
  39. MAIN.Selectable = true
  40. MAIN.Active = true
  41.  
  42. TextLabel.Parent = MAIN
  43. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  44. TextLabel.BackgroundTransparency = 1
  45. TextLabel.Position = UDim2.new(0.253071249, 0, 0, 0)
  46. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  47. TextLabel.Font = Enum.Font.SourceSansLight
  48. TextLabel.Text = "Translator"
  49. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  50. TextLabel.TextScaled = true
  51. TextLabel.TextSize = 14
  52. TextLabel.TextWrapped = true
  53.  
  54. TextLabel_2.Parent = MAIN
  55. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  56. TextLabel_2.BackgroundTransparency = 1
  57. TextLabel_2.Position = UDim2.new(0.294840306, 0, 0.0984251946, 0)
  58. TextLabel_2.Size = UDim2.new(0, 166, 0, 72)
  59. TextLabel_2.Font = Enum.Font.SourceSansLight
  60. TextLabel_2.Text = "AV"
  61. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  62. TextLabel_2.TextScaled = true
  63. TextLabel_2.TextSize = 14
  64. TextLabel_2.TextWrapped = true
  65.  
  66. TextLabel_3.Parent = MAIN
  67. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  68. TextLabel_3.BackgroundTransparency = 1
  69. TextLabel_3.Position = UDim2.new(0.530712485, 0, 0.251968533, 0)
  70. TextLabel_3.Size = UDim2.new(0, 71, 0, 22)
  71. TextLabel_3.Font = Enum.Font.SourceSansLight
  72. TextLabel_3.Text = "ersion"
  73. TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
  74. TextLabel_3.TextScaled = true
  75. TextLabel_3.TextSize = 14
  76. TextLabel_3.TextWrapped = true
  77.  
  78. Frame.Parent = MAIN
  79. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  80. Frame.BorderSizePixel = 0
  81. Frame.Position = UDim2.new(0.425061405, 0, 0.338582665, 0)
  82. Frame.Size = UDim2.new(0, 100, 0, 2)
  83.  
  84. TRANSLATE2.Name = "TRANSLATE2"
  85. TRANSLATE2.Parent = MAIN
  86. TRANSLATE2.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  87. TRANSLATE2.BorderSizePixel = 0
  88. TRANSLATE2.Position = UDim2.new(0, 0, 0.492126018, 0)
  89. TRANSLATE2.Selectable = true
  90. TRANSLATE2.Size = UDim2.new(0, 407, 0, 29)
  91.  
  92. NAME2.Name = "NAME2"
  93. NAME2.Parent = TRANSLATE2
  94. NAME2.BackgroundColor3 = Color3.new(1, 1, 1)
  95. NAME2.BackgroundTransparency = 1
  96. NAME2.BorderSizePixel = 0
  97. NAME2.Size = UDim2.new(0, 120, 0, 29)
  98. NAME2.Font = Enum.Font.SourceSansLight
  99. NAME2.Text = "Name"
  100. NAME2.TextColor3 = Color3.new(1, 1, 1)
  101. NAME2.TextScaled = true
  102. NAME2.TextSize = 14
  103. NAME2.TextWrapped = true
  104.  
  105. Frame_2.Parent = TRANSLATE2
  106. Frame_2.BackgroundColor3 = Color3.new(1, 1, 1)
  107. Frame_2.BorderSizePixel = 0
  108. Frame_2.Position = UDim2.new(0.294840306, 0, 0, 0)
  109. Frame_2.Size = UDim2.new(0, 1, 0, 29)
  110.  
  111. Frame_3.Parent = TRANSLATE2
  112. Frame_3.BackgroundColor3 = Color3.new(1, 1, 1)
  113. Frame_3.BorderSizePixel = 0
  114. Frame_3.Position = UDim2.new(0.886977911, 0, 0, 0)
  115. Frame_3.Size = UDim2.new(0, 1, 0, 29)
  116.  
  117. EN2.Name = "EN2"
  118. EN2.Parent = TRANSLATE2
  119. EN2.BackgroundColor3 = Color3.new(1, 1, 1)
  120. EN2.BackgroundTransparency = 1
  121. EN2.BorderSizePixel = 0
  122. EN2.Position = UDim2.new(0.889434874, 0, 0, 0)
  123. EN2.Size = UDim2.new(0, 45, 0, 29)
  124. EN2.Font = Enum.Font.SourceSansLight
  125. EN2.Text = "EN"
  126. EN2.TextColor3 = Color3.new(1, 1, 1)
  127. EN2.TextScaled = true
  128. EN2.TextSize = 14
  129. EN2.TextWrapped = true
  130.  
  131. TEXT2.Name = "TEXT2"
  132. TEXT2.Parent = TRANSLATE2
  133. TEXT2.BackgroundColor3 = Color3.new(1, 1, 1)
  134. TEXT2.BackgroundTransparency = 1
  135. TEXT2.BorderSizePixel = 0
  136. TEXT2.Position = UDim2.new(0.299754292, 0, 0, 0)
  137. TEXT2.Size = UDim2.new(0, 240, 0, 29)
  138. TEXT2.Font = Enum.Font.SourceSansLight
  139. TEXT2.Text = "Text"
  140. TEXT2.TextColor3 = Color3.new(1, 1, 1)
  141. TEXT2.TextScaled = true
  142. TEXT2.TextSize = 14
  143. TEXT2.TextWrapped = true
  144.  
  145. TextLabel_4.Parent = MAIN
  146. TextLabel_4.BackgroundColor3 = Color3.new(1, 1, 1)
  147. TextLabel_4.BackgroundTransparency = 1
  148. TextLabel_4.BorderSizePixel = 0
  149. TextLabel_4.Position = UDim2.new(0.152334154, 0, 0.669291377, 0)
  150. TextLabel_4.Size = UDim2.new(0, 282, 0, 62)
  151. TextLabel_4.Font = Enum.Font.SourceSansLight
  152. TextLabel_4.Text = "MORE OPTIONS COMING SOON IN BVersion!"
  153. TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
  154. TextLabel_4.TextScaled = true
  155. TextLabel_4.TextSize = 14
  156. TextLabel_4.TextWrapped = true
  157.  
  158. TextLabel_5.Parent = MAIN
  159. TextLabel_5.BackgroundColor3 = Color3.new(1, 1, 1)
  160. TextLabel_5.BackgroundTransparency = 1
  161. TextLabel_5.BorderSizePixel = 0
  162. TextLabel_5.Position = UDim2.new(0.152334154, 0, 0.944881916, 0)
  163. TextLabel_5.Size = UDim2.new(0, 282, 0, 14)
  164. TextLabel_5.Font = Enum.Font.SourceSansLight
  165. TextLabel_5.Text = "to open or close this, press F4!"
  166. TextLabel_5.TextColor3 = Color3.new(1, 1, 1)
  167. TextLabel_5.TextScaled = true
  168. TextLabel_5.TextSize = 14
  169. TextLabel_5.TextWrapped = true
  170.  
  171. TextLabel_6.Parent = MAIN
  172. TextLabel_6.BackgroundColor3 = Color3.new(1, 1, 1)
  173. TextLabel_6.BackgroundTransparency = 1
  174. TextLabel_6.BorderSizePixel = 0
  175. TextLabel_6.Size = UDim2.new(0, 88, 0, 16)
  176. TextLabel_6.Font = Enum.Font.SourceSansLight
  177. TextLabel_6.Text = "Made by LAZ3R#3702"
  178. TextLabel_6.TextColor3 = Color3.new(1, 1, 1)
  179. TextLabel_6.TextScaled = true
  180. TextLabel_6.TextSize = 14
  181. TextLabel_6.TextWrapped = true
  182.  
  183. TRANSLATE1.Name = "TRANSLATE1"
  184. TRANSLATE1.Parent = MAIN
  185. TRANSLATE1.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  186. TRANSLATE1.BorderSizePixel = 0
  187. TRANSLATE1.Position = UDim2.new(-0.000347465277, 0, 0.377108663, 0)
  188. TRANSLATE1.Selectable = true
  189. TRANSLATE1.Size = UDim2.new(0, 407, 0, 29)
  190.  
  191. NAME1.Name = "NAME1"
  192. NAME1.Parent = TRANSLATE1
  193. NAME1.BackgroundColor3 = Color3.new(1, 1, 1)
  194. NAME1.BackgroundTransparency = 1
  195. NAME1.BorderSizePixel = 0
  196. NAME1.Size = UDim2.new(0, 120, 0, 29)
  197. NAME1.Font = Enum.Font.SourceSansLight
  198. NAME1.Text = "Name"
  199. NAME1.TextColor3 = Color3.new(1, 1, 1)
  200. NAME1.TextScaled = true
  201. NAME1.TextSize = 14
  202. NAME1.TextWrapped = true
  203.  
  204. Frame_4.Parent = TRANSLATE1
  205. Frame_4.BackgroundColor3 = Color3.new(1, 1, 1)
  206. Frame_4.BorderSizePixel = 0
  207. Frame_4.Position = UDim2.new(0.294840306, 0, 0, 0)
  208. Frame_4.Size = UDim2.new(0, 1, 0, 29)
  209.  
  210. Frame_5.Parent = TRANSLATE1
  211. Frame_5.BackgroundColor3 = Color3.new(1, 1, 1)
  212. Frame_5.BorderSizePixel = 0
  213. Frame_5.Position = UDim2.new(0.886977911, 0, 0, 0)
  214. Frame_5.Size = UDim2.new(0, 1, 0, 29)
  215.  
  216. EN1.Name = "EN1"
  217. EN1.Parent = TRANSLATE1
  218. EN1.BackgroundColor3 = Color3.new(1, 1, 1)
  219. EN1.BackgroundTransparency = 1
  220. EN1.BorderSizePixel = 0
  221. EN1.Position = UDim2.new(0.889434874, 0, 0, 0)
  222. EN1.Size = UDim2.new(0, 45, 0, 29)
  223. EN1.Font = Enum.Font.SourceSansLight
  224. EN1.Text = "EN"
  225. EN1.TextColor3 = Color3.new(1, 1, 1)
  226. EN1.TextScaled = true
  227. EN1.TextSize = 14
  228. EN1.TextWrapped = true
  229.  
  230. TEXT1.Name = "TEXT1"
  231. TEXT1.Parent = TRANSLATE1
  232. TEXT1.BackgroundColor3 = Color3.new(1, 1, 1)
  233. TEXT1.BackgroundTransparency = 1
  234. TEXT1.BorderSizePixel = 0
  235. TEXT1.Position = UDim2.new(0.299754292, 0, 0, 0)
  236. TEXT1.Size = UDim2.new(0, 240, 0, 29)
  237. TEXT1.Font = Enum.Font.SourceSansLight
  238. TEXT1.Text = "Text"
  239. TEXT1.TextColor3 = Color3.new(1, 1, 1)
  240. TEXT1.TextScaled = true
  241. TEXT1.TextSize = 14
  242. TEXT1.TextWrapped = true
  243. -- Scripts:
  244. local player = game.Players.LocalPlayer
  245. local mouse = player:GetMouse()
  246.  
  247. opened = true
  248.  
  249.  
  250. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  251. if inputObject.KeyCode == Enum.KeyCode.F4 then
  252. if opened == true then
  253. game.CoreGui.TRANSLATOR.MAIN.Visible = false
  254. opened = false
  255. else if opened == false then
  256. game.CoreGui.TRANSLATOR.MAIN.Visible = true
  257. opened = true
  258. end
  259. end
  260. end
  261. end)
  262.  
  263.  
  264.  
  265.  
  266.  
  267. function getlang(text)
  268. detect = game:HttpGet("https://ws.detectlanguage.com/0.2/detect?q="..text.."&key=06fab8ef68bcc1b80cde7894dc600b94")
  269. det = game.HttpService:JSONDecode(detect)
  270. for index, a in pairs(det) do
  271. for index, b in pairs(a) do
  272. for index, c in pairs(b) do
  273. for index, d in pairs(c) do
  274. if type(d) == 'string' then
  275. return d
  276. end
  277. end
  278. end
  279. end
  280. end
  281. end
  282.  
  283.  
  284.  
  285.  
  286. firstfull = false
  287. secondfull = false
  288.  
  289. function TRANSLATE()
  290. local Action = game.Players:GetPlayers()
  291. for i = 1,#Action do
  292. Action[i].Chatted:connect(function(Message)
  293. u = game:HttpGet('https://api-platform.systran.net/translation/text/translate?key=691662c8-e817-4890-9e24-51707390707d&source=auto&target=en&input='..Message)
  294. local lol2 = game.HttpService:JSONDecode(u)
  295. for index, a in pairs(lol2) do
  296. for index, b in pairs(a) do
  297. for index, c in pairs(b) do
  298. tabl = {}
  299. table.insert(tabl, c)
  300. if type(c) == 'string' then
  301. table.insert(tabl, c)
  302. end
  303. if type(c) == 'string' and string.len(tabl[1]) >= 3 then
  304. if firstfull == false then
  305. NAME1.Text = Action[i].Name
  306. TEXT1.Text = c
  307. EN1.Text = getlang(Message)
  308. firstfull = true
  309. else if firstfull == true then
  310. NAME2.Text = NAME1.Text
  311. TEXT2.Text = TEXT1.Text
  312. EN2.Text = EN1.Text
  313. NAME1.Text = Action[i].Name
  314. TEXT1.Text = c
  315. EN1.Text = getlang(Message)
  316. secondfull = true
  317. else if secondfull == true then
  318. NAME1.Text = Action[i].Name
  319. TEXT1.Text = c
  320. EN1.Text = getlang(Message)
  321. firstfull = true
  322. end
  323. end
  324. end
  325. end
  326. end
  327. end
  328. end
  329. end)
  330. end
  331. end
  332. TRANSLATE()
  333.  
  334.  
  335. -- YOU CAN USE THIS AS AN EXAMPLE FOR YOUR OWN ONE IF YOU WANT.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement