Hmm465_Gaming

autotranslate

May 19th, 2020
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.11 KB | None | 0 0
  1. _G.API_KEY = "PUT YOUR API KEY HERE"
  2.  
  3. local HttpService = game:GetService("HttpService")
  4. local Players = game:GetService("Players")
  5.  
  6. wait(5)
  7.  
  8. game:GetService("StarterGui"):SetCore("SendNotification", {
  9. Title = "CustomChat for ChatTranslator";
  10. Text = "Loaded";
  11. Duration = 5;
  12. })
  13.  
  14. local Chat = Instance.new("ScreenGui")
  15. local Frame = Instance.new("Frame")
  16. local ChatBarParentFrame = Instance.new("Frame")
  17. local Frame_2 = Instance.new("Frame")
  18. local BoxFrame = Instance.new("Frame")
  19. local Frame_3 = Instance.new("Frame")
  20. local ChatBar = Instance.new("TextBox")
  21. local MessageMode = Instance.new("TextButton")
  22. local TextLabel = Instance.new("TextLabel")
  23. local ChannelsBarParentFrame = Instance.new("Frame")
  24. local Frame_4 = Instance.new("Frame")
  25. local ScrollingBase = Instance.new("Frame")
  26. local ScrollerSizer = Instance.new("Frame")
  27. local ScrollerFrame = Instance.new("Frame")
  28. local Frame_All = Instance.new("Frame")
  29. local BackgroundFrame = Instance.new("Frame")
  30. local UnselectedFrame = Instance.new("Frame")
  31. local TextButton = Instance.new("TextButton")
  32. local SelectedFrame = Instance.new("Frame")
  33. local BackgroundImage = Instance.new("ImageLabel")
  34. local BlueBarLeft = Instance.new("ImageLabel")
  35. local BlueBarRight = Instance.new("ImageLabel")
  36. local TextButton_2 = Instance.new("TextButton")
  37. local TextButton_3 = Instance.new("TextButton")
  38. local Frame_5 = Instance.new("Frame")
  39. local ImageLabel = Instance.new("ImageLabel")
  40. local TextLabel_2 = Instance.new("TextLabel")
  41. local Frame_System = Instance.new("Frame")
  42. local BackgroundFrame_2 = Instance.new("Frame")
  43. local UnselectedFrame_2 = Instance.new("Frame")
  44. local TextButton_4 = Instance.new("TextButton")
  45. local SelectedFrame_2 = Instance.new("Frame")
  46. local BackgroundImage_2 = Instance.new("ImageLabel")
  47. local BlueBarLeft_2 = Instance.new("ImageLabel")
  48. local BlueBarRight_2 = Instance.new("ImageLabel")
  49. local TextButton_5 = Instance.new("TextButton")
  50. local TextButton_6 = Instance.new("TextButton")
  51. local Frame_6 = Instance.new("Frame")
  52. local ImageLabel_2 = Instance.new("ImageLabel")
  53. local TextLabel_3 = Instance.new("TextLabel")
  54. local Frame_7 = Instance.new("Frame")
  55. local LeaveConfirmationFrame = Instance.new("Frame")
  56. local TextButton_7 = Instance.new("TextButton")
  57. local TextButton_8 = Instance.new("TextButton")
  58. local TextButton_9 = Instance.new("TextButton")
  59. local TextLabel_4 = Instance.new("TextLabel")
  60. local PageLeftButton = Instance.new("ImageButton")
  61. local ArrowLabel = Instance.new("ImageLabel")
  62. local PositionalHelper = Instance.new("Frame")
  63. local PageRightButton = Instance.new("ImageButton")
  64. local ArrowLabel_2 = Instance.new("ImageLabel")
  65. local ChatChannelParentFrame = Instance.new("Frame")
  66. local Frame_MessageLogDisplay = Instance.new("Frame")
  67. local Scroller = Instance.new("ScrollingFrame")
  68. local UIListLayout = Instance.new("UIListLayout")
  69. local Frame_8 = Instance.new("Frame")
  70. local TextLabel_5 = Instance.new("TextLabel")
  71. local ImageButton = Instance.new("ImageButton")
  72. local ImageLabel_3 = Instance.new("ImageLabel")
  73.  
  74. function CreateLabel(Name, Text)
  75. local sf = Scroller.Frame
  76. local sf2 = Scroller
  77. local alls = 20
  78. for i,v in pairs(sf:GetChildren()) do
  79. if v then
  80. alls = v.Size.Y.Offset + alls
  81. end
  82. if not v then
  83. alls = 0
  84. end
  85. end
  86. local tl = Instance.new('TextLabel', sf)
  87. local il = Instance.new('Frame', tl)
  88. tl.Name = Name
  89. --tl.ZIndex = 6
  90. tl.Text = "["..Name.."]: "..Text
  91. tl.Size = UDim2.new(0,355,0,84)
  92. --(1, 0, 1, 0)
  93. tl.BackgroundTransparency = 1
  94. tl.Font = Enum.Font.SourceSansBold
  95. tl.ClipsDescendants = true
  96. tl.Position = UDim2.new(0,8,0,alls)
  97. tl.TextTransparency = 1
  98. tl.TextScaled = false
  99. tl.TextSize = 18
  100. tl.TextWrapped = true
  101. tl.TextXAlignment = Enum.TextXAlignment.Left
  102. tl.TextYAlignment = Enum.TextYAlignment.Top
  103. il.BackgroundTransparency = 1
  104. il.BorderSizePixel = 0
  105. il.Size = UDim2.new(0,16,1,0)
  106. il.Position = UDim2.new(0,316,0,0)
  107. tl.TextStrokeTransparency = 0.750
  108. tl.TextColor3 = Color3.fromRGB(255,255,255)
  109. tl.Size = UDim2.new(0,355,0,tl.TextBounds.Y)
  110. sf2.CanvasSize = UDim2.new(0,0,0,alls+tl.TextBounds.Y)
  111. sf2.CanvasPosition = Vector2.new(0,sf2.CanvasPosition.Y+tl.TextBounds.Y)
  112. local size2 = sf2.CanvasSize.Y.Offset
  113. --[[tl:TweenPosition(UDim2.new(0,8,0,alls), 'In', 'Quint', 0.001)
  114. for i = 0,50 do wait(0.001)
  115. tl.TextTransparency = tl.TextTransparency - 0.05
  116. end--]]
  117. tl.TextTransparency = 0
  118. end
  119.  
  120. function CreateTLabel(Name, Text)
  121. local sf = Scroller.Frame
  122. local sf2 = Scroller
  123. local alls = 20
  124. for i,v in pairs(sf:GetChildren()) do
  125. if v then
  126. alls = v.Size.Y.Offset + alls
  127. end
  128. if not v then
  129. alls = 0
  130. end
  131. end
  132. local tl = Instance.new('TextLabel', sf)
  133. local il = Instance.new('Frame', tl)
  134. tl.Name = Name
  135. tl.ZIndex = 6
  136. tl.Text = "["..Name.."]: "..Text
  137. tl.Size = UDim2.new(0,355,0,84)
  138. --(1, 0, 1, 0)
  139. tl.BackgroundTransparency = 1
  140. tl.Font = Enum.Font.SourceSansBold
  141. tl.ClipsDescendants = true
  142. tl.Position = UDim2.new(0,8,0,alls)
  143. tl.TextTransparency = 1
  144. tl.TextScaled = false
  145. tl.TextSize = 18
  146. tl.TextWrapped = true
  147. tl.TextXAlignment = Enum.TextXAlignment.Left
  148. tl.TextYAlignment = Enum.TextYAlignment.Top
  149. il.BackgroundTransparency = 1
  150. il.BorderSizePixel = 0
  151. il.Size = UDim2.new(0,12,1,0)
  152. il.Position = UDim2.new(0,316,0,0)
  153. tl.TextStrokeTransparency = 0.750
  154. tl.TextColor3 = Color3.fromRGB(255,0,0)
  155. tl.Size = UDim2.new(0,355,0,tl.TextBounds.Y)
  156. sf2.CanvasSize = UDim2.new(0,0,0,alls+tl.TextBounds.Y)
  157. sf2.CanvasPosition = Vector2.new(0,sf2.CanvasPosition.Y+tl.TextBounds.Y)
  158. local size2 = sf2.CanvasSize.Y.Offset
  159. --[[tl:TweenPosition(UDim2.new(0,8,0,alls), 'In', 'Quint', 0.001)
  160. for i = 0,50 do wait(0.001)
  161. tl.TextTransparency = tl.TextTransparency - 0.05
  162. end--]]
  163. tl.TextTransparency = 0
  164. end
  165.  
  166. ----------------------------------------------------------------------
  167.  
  168. local Chat2 = Instance.new("ImageButton")
  169. local ChatIcon2 = Instance.new("ImageLabel")
  170. local ChatCounter2 = Instance.new("ImageLabel")
  171. local ChatCounterText2 = Instance.new("TextLabel")
  172.  
  173.  
  174. TMouse = game.Players.LocalPlayer:GetMouse()
  175. TMouse.KeyDown:connect(function(Key)
  176. if (Key=="'") then
  177. ChatBar:CaptureFocus()
  178. spawn(function()
  179. repeat ChatBar.Text = '' until ChatBar.Text == ''
  180. end)
  181. --ChatBar.Text = ""
  182. --[[spawn(function()
  183. repeat
  184. TextLabel.Visible = false
  185. Frame.Visible = true
  186. ChatIcon2.ImageColor3 = Color3.new(0, 255, 0)
  187. ChatChannelParentFrame.BackgroundTransparency = 0.6
  188. ImageButton.BackgroundTransparency = 0.6
  189. Frame_2.BackgroundTransparency = 0.6
  190. BoxFrame.BackgroundTransparency = 0.6
  191. TextLabel.TextTransparency = 0.4
  192. ChatBar.TextTransparency = 0.4
  193. until ChatBar.Text == ''
  194. end)--]]
  195. end
  196. end)
  197.  
  198. --Properties:
  199.  
  200. Chat.Name = "CustomChat"
  201. Chat.Parent = game.Players[game.Players.LocalPlayer.Name].PlayerGui
  202. Chat.DisplayOrder = 6
  203. Chat.ResetOnSpawn = false
  204.  
  205. Frame.Parent = Chat
  206. Frame.BackgroundTransparency = 1.000
  207. Frame.Size = UDim2.new(0.300000012, 0, 0.275945932, 0)
  208. Frame.Visible = false
  209.  
  210. ChatBarParentFrame.Name = "ChatBarParentFrame"
  211. ChatBarParentFrame.Parent = Frame
  212. ChatBarParentFrame.BackgroundTransparency = 1.000
  213. ChatBarParentFrame.Position = UDim2.new(0, 0, 1, -42)
  214. ChatBarParentFrame.Size = UDim2.new(1, 0, 0, 42)
  215.  
  216. Frame_2.Parent = ChatBarParentFrame
  217. Frame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  218. Frame_2.BackgroundTransparency = 1
  219. Frame_2.BorderSizePixel = 0
  220. Frame_2.Size = UDim2.new(1, 0, 1, 0)
  221.  
  222. BoxFrame.Name = "BoxFrame"
  223. BoxFrame.Parent = Frame_2
  224. BoxFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  225. BoxFrame.BackgroundTransparency = 1
  226. BoxFrame.BorderSizePixel = 0
  227. BoxFrame.Position = UDim2.new(0, 7, 0, 7)
  228. BoxFrame.Size = UDim2.new(1, -14, 1, -14)
  229.  
  230. Frame_3.Parent = BoxFrame
  231. Frame_3.BackgroundTransparency = 1.000
  232. Frame_3.Position = UDim2.new(0, 5, 0, 5)
  233. Frame_3.Size = UDim2.new(1, -10, 1, -10)
  234.  
  235. ChatBar.Name = "ChatBar"
  236. ChatBar.Parent = Frame_3
  237. ChatBar.BackgroundTransparency = 1.000
  238. ChatBar.Selectable = false
  239. ChatBar.Size = UDim2.new(0,370,0,28)
  240. --(1, 0, 1, 0)
  241. ChatBar.ClearTextOnFocus = false
  242. ChatBar.Font = Enum.Font.SourceSansBold
  243. ChatBar.Text = ""
  244. ChatBar.TextColor3 = Color3.fromRGB(0, 0, 0)
  245. ChatBar.TextSize = 18.000
  246. ChatBar.TextTransparency = 1
  247. ChatBar.TextWrapped = true
  248. ChatBar.TextScaled = false
  249. ChatBar.TextXAlignment = Enum.TextXAlignment.Left
  250. ChatBar.TextYAlignment = Enum.TextYAlignment.Top
  251. ChatBar.MouseEnter:connect(function()
  252. ChatChannelParentFrame.BackgroundTransparency = 0.6
  253. ImageButton.BackgroundTransparency = 0.6
  254. Frame_2.BackgroundTransparency = 0.6
  255. BoxFrame.BackgroundTransparency = 0.6
  256. TextLabel.TextTransparency = 0.4
  257. ChatBar.TextTransparency = 0.4
  258. end)
  259. --[[ChatBar.MouseLeave:connect(function()
  260. ChatChannelParentFrame.BackgroundTransparency = 1
  261. ImageButton.BackgroundTransparency = 1
  262. Frame_2.BackgroundTransparency = 1
  263. BoxFrame.BackgroundTransparency = 1
  264. TextLabel.TextTransparency = 1
  265. ChatBar.TextTransparency = 1
  266. end)--]]
  267.  
  268.  
  269. MessageMode.Name = "MessageMode"
  270. MessageMode.Parent = Frame_3
  271. MessageMode.BackgroundTransparency = 1.000
  272. MessageMode.Selectable = false
  273. MessageMode.Font = Enum.Font.SourceSansBold
  274. MessageMode.Text = ""
  275. MessageMode.TextColor3 = Color3.fromRGB(35, 76, 142)
  276. MessageMode.TextSize = 18.000
  277. MessageMode.TextTransparency = 0.810
  278. MessageMode.TextWrapped = true
  279. MessageMode.TextXAlignment = Enum.TextXAlignment.Left
  280.  
  281. TextLabel.Parent = Frame_3
  282. TextLabel.BackgroundTransparency = 1.000
  283. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  284. TextLabel.Font = Enum.Font.SourceSansBold
  285. TextLabel.Text = "To chat click here or press ' key"
  286. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  287. TextLabel.TextSize = 18.000
  288. TextLabel.TextTransparency = 1
  289. TextLabel.TextWrapped = true
  290. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  291. TextLabel.TextYAlignment = Enum.TextYAlignment.Top
  292.  
  293.  
  294. ChannelsBarParentFrame.Name = "ChannelsBarParentFrame"
  295. ChannelsBarParentFrame.Parent = Frame
  296. ChannelsBarParentFrame.BackgroundTransparency = 1.000
  297. ChannelsBarParentFrame.Size = UDim2.new(1, 0, 0, 34)
  298. ChannelsBarParentFrame.Visible = false
  299.  
  300. Frame_4.Parent = ChannelsBarParentFrame
  301. Frame_4.BackgroundTransparency = 1.000
  302. Frame_4.Size = UDim2.new(1, 0, 1, 0)
  303.  
  304. ScrollingBase.Name = "ScrollingBase"
  305. ScrollingBase.Parent = Frame_4
  306. ScrollingBase.BackgroundTransparency = 1.000
  307. ScrollingBase.ClipsDescendants = true
  308. ScrollingBase.Size = UDim2.new(1, 0, 1, 0)
  309.  
  310. ScrollerSizer.Name = "ScrollerSizer"
  311. ScrollerSizer.Parent = ScrollingBase
  312. ScrollerSizer.BackgroundTransparency = 1.000
  313. ScrollerSizer.Size = UDim2.new(0.5, 0, 1, 0)
  314.  
  315. ScrollerFrame.Name = "ScrollerFrame"
  316. ScrollerFrame.Parent = ScrollerSizer
  317. ScrollerFrame.BackgroundTransparency = 1.000
  318. ScrollerFrame.Size = UDim2.new(1, 0, 1, 0)
  319.  
  320. Frame_All.Name = "Frame_All"
  321. Frame_All.Parent = ScrollerFrame
  322. Frame_All.BackgroundTransparency = 1.000
  323. Frame_All.Size = UDim2.new(1, 0, 1, 0)
  324.  
  325. BackgroundFrame.Name = "BackgroundFrame"
  326. BackgroundFrame.Parent = Frame_All
  327. BackgroundFrame.BackgroundTransparency = 1.000
  328. BackgroundFrame.Position = UDim2.new(0, 1, 0, 1)
  329. BackgroundFrame.Size = UDim2.new(1, -2, 1, -2)
  330.  
  331. UnselectedFrame.Name = "UnselectedFrame"
  332. UnselectedFrame.Parent = BackgroundFrame
  333. UnselectedFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  334. UnselectedFrame.BackgroundTransparency = 0.873
  335. UnselectedFrame.BorderSizePixel = 0
  336. UnselectedFrame.Size = UDim2.new(1, 0, 1, 0)
  337. UnselectedFrame.Visible = false
  338.  
  339. TextButton.Parent = UnselectedFrame
  340. TextButton.Active = false
  341. TextButton.BackgroundTransparency = 1.000
  342. TextButton.Selectable = false
  343. TextButton.Size = UDim2.new(1, 0, 1, 0)
  344. TextButton.Font = Enum.Font.SourceSans
  345. TextButton.Text = "All"
  346. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  347. TextButton.TextSize = 18.000
  348. TextButton.TextStrokeTransparency = 0.873
  349. TextButton.TextTransparency = 0.873
  350.  
  351. SelectedFrame.Name = "SelectedFrame"
  352. SelectedFrame.Parent = BackgroundFrame
  353. SelectedFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  354. SelectedFrame.BackgroundTransparency = 1.000
  355. SelectedFrame.BorderSizePixel = 0
  356. SelectedFrame.Size = UDim2.new(1, 0, 1, 0)
  357.  
  358. BackgroundImage.Name = "BackgroundImage"
  359. BackgroundImage.Parent = SelectedFrame
  360. BackgroundImage.BackgroundColor3 = Color3.fromRGB(93, 100, 115)
  361. BackgroundImage.BackgroundTransparency = 0.873
  362. BackgroundImage.BorderSizePixel = 0
  363. BackgroundImage.Size = UDim2.new(1, 0, 1, 0)
  364. BackgroundImage.ScaleType = Enum.ScaleType.Slice
  365.  
  366. BlueBarLeft.Name = "BlueBarLeft"
  367. BlueBarLeft.Parent = SelectedFrame
  368. BlueBarLeft.BackgroundTransparency = 1.000
  369. BlueBarLeft.Position = UDim2.new(0, 2, 1, -4)
  370. BlueBarLeft.Size = UDim2.new(0.5, -2, 0, 4)
  371. BlueBarLeft.Image = "rbxasset://textures/ui/Settings/Slider/SelectedBarLeft.png"
  372. BlueBarLeft.ImageTransparency = 0.873
  373. BlueBarLeft.ScaleType = Enum.ScaleType.Slice
  374. BlueBarLeft.SliceCenter = Rect.new(3, 3, 32, 21)
  375.  
  376. BlueBarRight.Name = "BlueBarRight"
  377. BlueBarRight.Parent = SelectedFrame
  378. BlueBarRight.BackgroundTransparency = 1.000
  379. BlueBarRight.Position = UDim2.new(0.5, 0, 1, -4)
  380. BlueBarRight.Size = UDim2.new(0.5, -2, 0, 4)
  381. BlueBarRight.Image = "rbxasset://textures/ui/Settings/Slider/SelectedBarRight.png"
  382. BlueBarRight.ImageTransparency = 0.873
  383. BlueBarRight.ScaleType = Enum.ScaleType.Slice
  384. BlueBarRight.SliceCenter = Rect.new(3, 3, 32, 21)
  385.  
  386. TextButton_2.Parent = SelectedFrame
  387. TextButton_2.Active = false
  388. TextButton_2.BackgroundTransparency = 1.000
  389. TextButton_2.Selectable = false
  390. TextButton_2.Size = UDim2.new(1, 0, 1, 0)
  391. TextButton_2.Font = Enum.Font.SourceSansBold
  392. TextButton_2.Text = "All"
  393. TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  394. TextButton_2.TextSize = 18.000
  395. TextButton_2.TextStrokeTransparency = 0.750
  396.  
  397. TextButton_3.Parent = BackgroundFrame
  398. TextButton_3.BackgroundTransparency = 1.000
  399. TextButton_3.Selectable = false
  400. TextButton_3.Size = UDim2.new(1, 0, 1, 0)
  401. TextButton_3.Font = Enum.Font.SourceSansBold
  402. TextButton_3.Text = ""
  403. TextButton_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  404. TextButton_3.TextSize = 18.000
  405. TextButton_3.TextStrokeTransparency = 0.750
  406.  
  407. Frame_5.Parent = BackgroundFrame
  408. Frame_5.BackgroundTransparency = 1.000
  409. Frame_5.Position = UDim2.new(0.800000012, -9, 0.5, -9)
  410. Frame_5.Size = UDim2.new(0, 18, 0, 18)
  411.  
  412. ImageLabel.Parent = Frame_5
  413. ImageLabel.BackgroundTransparency = 1.000
  414. ImageLabel.Size = UDim2.new(1, 0, 1, 0)
  415. ImageLabel.Visible = false
  416. ImageLabel.Image = "rbxasset://textures/ui/Chat/MessageCounter.png"
  417.  
  418. TextLabel_2.Parent = ImageLabel
  419. TextLabel_2.BackgroundTransparency = 1.000
  420. TextLabel_2.Position = UDim2.new(0.5, -7, 0.5, -7)
  421. TextLabel_2.Size = UDim2.new(0, 13, 0, 9)
  422. TextLabel_2.Font = Enum.Font.SourceSansBold
  423. TextLabel_2.Text = ""
  424. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  425. TextLabel_2.TextSize = 14.000
  426. TextLabel_2.TextStrokeTransparency = 0.750
  427.  
  428. Frame_System.Name = "Frame_System"
  429. Frame_System.Parent = ScrollerFrame
  430. Frame_System.BackgroundTransparency = 1.000
  431. Frame_System.Position = UDim2.new(1, 0, 0, 0)
  432. Frame_System.Size = UDim2.new(1, 0, 1, 0)
  433.  
  434. BackgroundFrame_2.Name = "BackgroundFrame"
  435. BackgroundFrame_2.Parent = Frame_System
  436. BackgroundFrame_2.BackgroundTransparency = 1.000
  437. BackgroundFrame_2.Position = UDim2.new(0, 1, 0, 1)
  438. BackgroundFrame_2.Size = UDim2.new(1, -2, 1, -2)
  439.  
  440. UnselectedFrame_2.Name = "UnselectedFrame"
  441. UnselectedFrame_2.Parent = BackgroundFrame_2
  442. UnselectedFrame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  443. UnselectedFrame_2.BackgroundTransparency = 0.873
  444. UnselectedFrame_2.BorderSizePixel = 0
  445. UnselectedFrame_2.Size = UDim2.new(1, 0, 1, 0)
  446.  
  447. TextButton_4.Parent = UnselectedFrame_2
  448. TextButton_4.Active = false
  449. TextButton_4.BackgroundTransparency = 1.000
  450. TextButton_4.Selectable = false
  451. TextButton_4.Size = UDim2.new(1, 0, 1, 0)
  452. TextButton_4.Font = Enum.Font.SourceSans
  453. TextButton_4.Text = "System"
  454. TextButton_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  455. TextButton_4.TextSize = 18.000
  456. TextButton_4.TextStrokeTransparency = 0.873
  457. TextButton_4.TextTransparency = 0.873
  458.  
  459. SelectedFrame_2.Name = "SelectedFrame"
  460. SelectedFrame_2.Parent = BackgroundFrame_2
  461. SelectedFrame_2.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  462. SelectedFrame_2.BackgroundTransparency = 1.000
  463. SelectedFrame_2.BorderSizePixel = 0
  464. SelectedFrame_2.Size = UDim2.new(1, 0, 1, 0)
  465. SelectedFrame_2.Visible = false
  466.  
  467. BackgroundImage_2.Name = "BackgroundImage"
  468. BackgroundImage_2.Parent = SelectedFrame_2
  469. BackgroundImage_2.BackgroundColor3 = Color3.fromRGB(93, 100, 115)
  470. BackgroundImage_2.BackgroundTransparency = 0.873
  471. BackgroundImage_2.BorderSizePixel = 0
  472. BackgroundImage_2.Size = UDim2.new(1, 0, 1, 0)
  473. BackgroundImage_2.ScaleType = Enum.ScaleType.Slice
  474.  
  475. BlueBarLeft_2.Name = "BlueBarLeft"
  476. BlueBarLeft_2.Parent = SelectedFrame_2
  477. BlueBarLeft_2.BackgroundTransparency = 1.000
  478. BlueBarLeft_2.Position = UDim2.new(0, 2, 1, -4)
  479. BlueBarLeft_2.Size = UDim2.new(0.5, -2, 0, 4)
  480. BlueBarLeft_2.Image = "rbxasset://textures/ui/Settings/Slider/SelectedBarLeft.png"
  481. BlueBarLeft_2.ImageTransparency = 0.873
  482. BlueBarLeft_2.ScaleType = Enum.ScaleType.Slice
  483. BlueBarLeft_2.SliceCenter = Rect.new(3, 3, 32, 21)
  484.  
  485. BlueBarRight_2.Name = "BlueBarRight"
  486. BlueBarRight_2.Parent = SelectedFrame_2
  487. BlueBarRight_2.BackgroundTransparency = 1.000
  488. BlueBarRight_2.Position = UDim2.new(0.5, 0, 1, -4)
  489. BlueBarRight_2.Size = UDim2.new(0.5, -2, 0, 4)
  490. BlueBarRight_2.Image = "rbxasset://textures/ui/Settings/Slider/SelectedBarRight.png"
  491. BlueBarRight_2.ImageTransparency = 0.873
  492. BlueBarRight_2.ScaleType = Enum.ScaleType.Slice
  493. BlueBarRight_2.SliceCenter = Rect.new(3, 3, 32, 21)
  494.  
  495. TextButton_5.Parent = SelectedFrame_2
  496. TextButton_5.Active = false
  497. TextButton_5.BackgroundTransparency = 1.000
  498. TextButton_5.Selectable = false
  499. TextButton_5.Size = UDim2.new(1, 0, 1, 0)
  500. TextButton_5.Font = Enum.Font.SourceSansBold
  501. TextButton_5.Text = "System"
  502. TextButton_5.TextColor3 = Color3.fromRGB(255, 255, 255)
  503. TextButton_5.TextSize = 18.000
  504. TextButton_5.TextStrokeTransparency = 0.750
  505.  
  506. TextButton_6.Parent = BackgroundFrame_2
  507. TextButton_6.BackgroundTransparency = 1.000
  508. TextButton_6.Selectable = false
  509. TextButton_6.Size = UDim2.new(1, 0, 1, 0)
  510. TextButton_6.Font = Enum.Font.SourceSans
  511. TextButton_6.Text = ""
  512. TextButton_6.TextColor3 = Color3.fromRGB(255, 255, 255)
  513. TextButton_6.TextSize = 18.000
  514. TextButton_6.TextStrokeTransparency = 0.750
  515.  
  516. Frame_6.Parent = BackgroundFrame_2
  517. Frame_6.BackgroundTransparency = 1.000
  518. Frame_6.Position = UDim2.new(0.800000012, -9, 0.5, -9)
  519. Frame_6.Size = UDim2.new(0, 18, 0, 18)
  520.  
  521. ImageLabel_2.Parent = Frame_6
  522. ImageLabel_2.BackgroundTransparency = 1.000
  523. ImageLabel_2.Size = UDim2.new(1, 0, 1, 0)
  524. ImageLabel_2.Visible = false
  525. ImageLabel_2.Image = "rbxasset://textures/ui/Chat/MessageCounter.png"
  526.  
  527. TextLabel_3.Parent = ImageLabel_2
  528. TextLabel_3.BackgroundTransparency = 1.000
  529. TextLabel_3.Position = UDim2.new(0.5, -7, 0.5, -7)
  530. TextLabel_3.Size = UDim2.new(0, 13, 0, 9)
  531. TextLabel_3.Font = Enum.Font.SourceSansBold
  532. TextLabel_3.Text = ""
  533. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  534. TextLabel_3.TextSize = 14.000
  535. TextLabel_3.TextStrokeTransparency = 0.750
  536.  
  537. Frame_7.Parent = Frame_4
  538. Frame_7.BackgroundTransparency = 1.000
  539. Frame_7.ClipsDescendants = true
  540. Frame_7.Size = UDim2.new(1, 0, 1, 0)
  541.  
  542. LeaveConfirmationFrame.Name = "LeaveConfirmationFrame"
  543. LeaveConfirmationFrame.Parent = Frame_7
  544. LeaveConfirmationFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  545. LeaveConfirmationFrame.BackgroundTransparency = 0.600
  546. LeaveConfirmationFrame.BorderSizePixel = 0
  547. LeaveConfirmationFrame.Position = UDim2.new(0, 0, 1, 0)
  548. LeaveConfirmationFrame.Size = UDim2.new(1, 0, 1, 0)
  549.  
  550. TextButton_7.Parent = LeaveConfirmationFrame
  551. TextButton_7.BackgroundTransparency = 1.000
  552. TextButton_7.Selectable = false
  553. TextButton_7.Size = UDim2.new(1, 0, 1, 0)
  554. TextButton_7.Text = ""
  555.  
  556. TextButton_8.Parent = LeaveConfirmationFrame
  557. TextButton_8.BackgroundTransparency = 1.000
  558. TextButton_8.Selectable = false
  559. TextButton_8.Size = UDim2.new(0.25, 0, 1, 0)
  560. TextButton_8.Font = Enum.Font.SourceSansBold
  561. TextButton_8.Text = "Confirm"
  562. TextButton_8.TextColor3 = Color3.fromRGB(0, 255, 0)
  563. TextButton_8.TextSize = 18.000
  564. TextButton_8.TextStrokeTransparency = 0.750
  565.  
  566. TextButton_9.Parent = LeaveConfirmationFrame
  567. TextButton_9.BackgroundTransparency = 1.000
  568. TextButton_9.Position = UDim2.new(0.75, 0, 0, 0)
  569. TextButton_9.Selectable = false
  570. TextButton_9.Size = UDim2.new(0.25, 0, 1, 0)
  571. TextButton_9.Font = Enum.Font.SourceSansBold
  572. TextButton_9.Text = "Cancel"
  573. TextButton_9.TextColor3 = Color3.fromRGB(255, 0, 0)
  574. TextButton_9.TextSize = 18.000
  575. TextButton_9.TextStrokeTransparency = 0.750
  576.  
  577. TextLabel_4.Parent = LeaveConfirmationFrame
  578. TextLabel_4.BackgroundTransparency = 1.000
  579. TextLabel_4.Position = UDim2.new(0.25, 0, 0, 0)
  580. TextLabel_4.Size = UDim2.new(0.5, 0, 1, 0)
  581. TextLabel_4.Font = Enum.Font.SourceSansBold
  582. TextLabel_4.Text = "Leave channel <XX>?"
  583. TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  584. TextLabel_4.TextSize = 18.000
  585. TextLabel_4.TextStrokeTransparency = 0.750
  586.  
  587. PageLeftButton.Name = "PageLeftButton"
  588. PageLeftButton.Parent = Frame_4
  589. PageLeftButton.BackgroundTransparency = 1.000
  590. PageLeftButton.Position = UDim2.new(0, 4, 0.150000006, 0)
  591. PageLeftButton.Selectable = false
  592. PageLeftButton.Size = UDim2.new(0.699999988, 0, 0.699999988, 0)
  593. PageLeftButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
  594. PageLeftButton.Visible = false
  595. PageLeftButton.Image = "rbxassetid://471630199"
  596. PageLeftButton.ImageTransparency = 0.873
  597.  
  598. ArrowLabel.Name = "ArrowLabel"
  599. ArrowLabel.Parent = PageLeftButton
  600. ArrowLabel.BackgroundTransparency = 1.000
  601. ArrowLabel.Position = UDim2.new(0.25, 0, 0.300000012, 0)
  602. ArrowLabel.Rotation = 180.000
  603. ArrowLabel.Size = UDim2.new(0.400000006, 0, 0.400000006, 0)
  604. ArrowLabel.Image = "rbxassetid://471630112"
  605. ArrowLabel.ImageTransparency = 0.873
  606.  
  607. PositionalHelper.Name = "PositionalHelper"
  608. PositionalHelper.Parent = Frame_4
  609. PositionalHelper.BackgroundTransparency = 1.000
  610. PositionalHelper.Position = UDim2.new(1, 0, 0.150000006, 0)
  611. PositionalHelper.Size = UDim2.new(0.699999988, 0, 0.699999988, 0)
  612. PositionalHelper.SizeConstraint = Enum.SizeConstraint.RelativeYY
  613.  
  614. PageRightButton.Name = "PageRightButton"
  615. PageRightButton.Parent = PositionalHelper
  616. PageRightButton.BackgroundTransparency = 1.000
  617. PageRightButton.Position = UDim2.new(-1, -4, 0, 0)
  618. PageRightButton.Selectable = false
  619. PageRightButton.Size = UDim2.new(1, 0, 1, 0)
  620. PageRightButton.Visible = false
  621. PageRightButton.Image = "rbxassetid://471630199"
  622. PageRightButton.ImageTransparency = 0.873
  623.  
  624. ArrowLabel_2.Name = "ArrowLabel"
  625. ArrowLabel_2.Parent = PageRightButton
  626. ArrowLabel_2.BackgroundTransparency = 1.000
  627. ArrowLabel_2.Position = UDim2.new(0.350000024, 0, 0.300000012, 0)
  628. ArrowLabel_2.Size = UDim2.new(0.400000006, 0, 0.400000006, 0)
  629. ArrowLabel_2.Image = "rbxassetid://471630112"
  630. ArrowLabel_2.ImageTransparency = 0.873
  631.  
  632.  
  633. ChatChannelParentFrame.Name = "ChatChannelParentFrame"
  634. ChatChannelParentFrame.Parent = Frame
  635. ChatChannelParentFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  636. ChatChannelParentFrame.BackgroundTransparency = 1
  637. ChatChannelParentFrame.BorderSizePixel = 0
  638. ChatChannelParentFrame.Position = UDim2.new(0, 0, 0, 2)
  639. ChatChannelParentFrame.Size = UDim2.new(1, 0, 1, -46)
  640. ChatChannelParentFrame.MouseEnter:connect(function()
  641. ChatChannelParentFrame.BackgroundTransparency = 0.6
  642. ImageButton.BackgroundTransparency = 0.6
  643. Frame_2.BackgroundTransparency = 0.6
  644. BoxFrame.BackgroundTransparency = 0.6
  645. TextLabel.TextTransparency = 0.4
  646. ChatBar.TextTransparency = 0.4
  647. Scroller.ScrollBarImageTransparency = 0.4
  648. end)
  649. ChatChannelParentFrame.MouseLeave:connect(function()
  650. ChatChannelParentFrame.BackgroundTransparency = 1
  651. ImageButton.BackgroundTransparency = 1
  652. Frame_2.BackgroundTransparency = 1
  653. BoxFrame.BackgroundTransparency = 1
  654. TextLabel.TextTransparency = 1
  655. ChatBar.TextTransparency = 1
  656. Scroller.ScrollBarImageTransparency = 1
  657. end)
  658.  
  659. Frame_MessageLogDisplay.Name = "Frame_MessageLogDisplay"
  660. Frame_MessageLogDisplay.Parent = ChatChannelParentFrame
  661. Frame_MessageLogDisplay.BackgroundTransparency = 1.000
  662. Frame_MessageLogDisplay.Size = UDim2.new(1, 0, 1, 0)
  663.  
  664. Scroller.Name = "Scroller"
  665. Scroller.Parent = Frame_MessageLogDisplay
  666. Scroller.Active = true
  667. Scroller.BackgroundTransparency = 1.000
  668. Scroller.BorderSizePixel = 0
  669. Scroller.Position = UDim2.new(0, 0, 0, 3)
  670. Scroller.Selectable = false
  671. Scroller.Size = UDim2.new(1, -4, 1, -6)
  672. Scroller.CanvasSize = UDim2.new(0, 0, 0, 18)
  673. Scroller.ScrollBarThickness = 4
  674. Scroller.ScrollingEnabled = true
  675. Scroller.ZIndex = 5
  676.  
  677. UIListLayout.Parent = Scroller
  678. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  679.  
  680. Frame_8.Parent = Scroller
  681. Frame_8.BackgroundTransparency = 1.000
  682. Frame_8.LayoutOrder = 1
  683. Frame_8.Size = UDim2.new(1, 0, 0, 18)
  684.  
  685. TextLabel_5.Parent = Frame_8
  686. TextLabel_5.BackgroundTransparency = 1.000
  687. TextLabel_5.ClipsDescendants = true
  688. TextLabel_5.Position = UDim2.new(0, 8, 0, 0)
  689. TextLabel_5.Size = UDim2.new(1, -14, 1, 0)
  690. TextLabel_5.Font = Enum.Font.SourceSansBold
  691. TextLabel_5.Text = "Chat '/?' or '/help' for a list of chat commands."
  692. TextLabel_5.TextColor3 = Color3.fromRGB(255, 255, 255)
  693. TextLabel_5.TextSize = 18.000
  694. TextLabel_5.TextStrokeTransparency = 0.750
  695. TextLabel_5.TextWrapped = true
  696. TextLabel_5.TextXAlignment = Enum.TextXAlignment.Left
  697. TextLabel_5.TextYAlignment = Enum.TextYAlignment.Top
  698.  
  699. ImageButton.Parent = Frame
  700. ImageButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  701. ImageButton.BackgroundTransparency = 1
  702. ImageButton.BorderSizePixel = 0
  703. ImageButton.Position = UDim2.new(1, -42, 1, -42)
  704. ImageButton.Selectable = false
  705. ImageButton.Size = UDim2.new(0, 42, 0, 42)
  706. ImageButton.Visible = false
  707.  
  708. ImageLabel_3.Parent = ImageButton
  709. ImageLabel_3.BackgroundTransparency = 1.000
  710. ImageLabel_3.Position = UDim2.new(0.200000003, 0, 0.200000003, 0)
  711. ImageLabel_3.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
  712. ImageLabel_3.Image = "rbxassetid://261880743"
  713. ImageLabel_3.ImageTransparency = 0.873
  714.  
  715.  
  716. -------------------------------------------------------------------------------------------------------------------------------------------------
  717.  
  718. --Properties:
  719. unread_counter = 0
  720. local UserInputService = game:GetService("UserInputService")
  721. rs = game:GetService"RunService"
  722.  
  723. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  724. if ChatBar:IsFocused() == true then
  725. TextLabel.Visible = false
  726. --TextLabel.Text = ""
  727. Frame.Visible = true
  728. ChatIcon2.ImageColor3 = Color3.new(0, 255, 0)
  729. ChatChannelParentFrame.BackgroundTransparency = 0.6
  730. ImageButton.BackgroundTransparency = 0.6
  731. Frame_2.BackgroundTransparency = 0.6
  732. BoxFrame.BackgroundTransparency = 0.6
  733. TextLabel.TextTransparency = 0.4
  734. ChatBar.TextTransparency = 0.4
  735. ChatCounterText2.Text = ""
  736. ChatCounter2.Visible = false
  737. unread_counter = 0
  738. Scroller.ScrollBarImageTransparency = 0.4
  739.  
  740. --[[if input.KeyCode == Enum.KeyCode.Return then
  741. if string.len(ChatBar.Text) == 0 then
  742.  
  743. else
  744. local A_1 = ChatBar.Text
  745. local A_2 = "All"
  746. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  747. Event:FireServer(A_1, A_2)
  748. CreateLabel(game.Players.LocalPlayer.Name,ChatBar.Text)
  749. ChatBar.Text = ""
  750. ChatChannelParentFrame.BackgroundTransparency = 1
  751. ImageButton.BackgroundTransparency = 1
  752. Frame_2.BackgroundTransparency = 1
  753. BoxFrame.BackgroundTransparency = 1
  754. TextLabel.TextTransparency = 1
  755. ChatBar.TextTransparency = 1
  756. end
  757. TextLabel.Visible = true
  758. Scroller.ScrollBarImageTransparency = 1
  759. end--]]
  760. --print(ChatBar:IsFocused())
  761. elseif ChatBar:IsFocused() == false and input.KeyCode == Enum.KeyCode.Return then
  762. ChatBar.Text = ""
  763. ChatChannelParentFrame.BackgroundTransparency = 1
  764. ImageButton.BackgroundTransparency = 1
  765. Frame_2.BackgroundTransparency = 1
  766. BoxFrame.BackgroundTransparency = 1
  767. TextLabel.TextTransparency = 1
  768. ChatBar.TextTransparency = 1
  769. TextLabel.Visible = true
  770. Scroller.ScrollBarImageTransparency = 1
  771. end
  772. end)
  773.  
  774. --[[ChatBar.Focused:Connect(function()
  775. ChatBar:CaptureFocus()
  776. TextLabel.Visible = false
  777. --TextLabel.Text = ""
  778. Frame.Visible = true
  779. ChatIcon2.ImageColor3 = Color3.new(0, 255, 0)
  780. ChatChannelParentFrame.BackgroundTransparency = 0.6
  781. ImageButton.BackgroundTransparency = 0.6
  782. Frame_2.BackgroundTransparency = 0.6
  783. BoxFrame.BackgroundTransparency = 0.6
  784. TextLabel.TextTransparency = 0.4
  785. ChatBar.TextTransparency = 0.4
  786. ChatCounterText2.Text = ""
  787. ChatCounter2.Visible = false
  788. unread_counter = 0
  789. Scroller.ScrollBarImageTransparency = 0.4
  790. end)--]]
  791.  
  792. ChatBar.FocusLost:Connect(function(enterPressed)
  793. if enterPressed then
  794. if string.len(ChatBar.Text) == 0 then
  795.  
  796. else
  797. --[[if ChatBar.Text:sub(1, 6) == "/e de " then
  798. local A_1 = ChatBar.Text:sub(7)
  799. local A_2 = "All"
  800. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  801. Event:FireServer(A_1, A_2)
  802. end--]]
  803. for i,plr in pairs(Players:GetPlayers()) do
  804. if ChatBar.Text:sub(1, 6) == "/e de " and plr.Name == game.Players.LocalPlayer.Name then --German
  805. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  806. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-de&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  807. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  808. local A_1 = LocalTranslate_data.text[1]
  809. local A_2 = "All"
  810. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  811. Event:FireServer(A_1, A_2)
  812. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  813. elseif ChatBar.Text:sub(1, 6) == "/e ru " and plr.Name == game.Players.LocalPlayer.Name then --Russian
  814. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  815. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ru&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  816. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  817. local A_1 = LocalTranslate_data.text[1]
  818. local A_2 = "All"
  819. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  820. Event:FireServer(A_1, A_2)
  821. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  822. elseif ChatBar.Text:sub(1, 6) == "/e fr " and plr.Name == game.Players.LocalPlayer.Name then --France
  823. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  824. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-fr&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  825. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  826. local A_1 = LocalTranslate_data.text[1]
  827. local A_2 = "All"
  828. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  829. Event:FireServer(A_1, A_2)
  830. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  831. elseif ChatBar.Text:sub(1, 6) == "/e es " and plr.Name == game.Players.LocalPlayer.Name then --Spanish
  832. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  833. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-es&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  834. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  835. local A_1 = LocalTranslate_data.text[1]
  836. local A_2 = "All"
  837. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  838. Event:FireServer(A_1, A_2)
  839. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  840. elseif ChatBar.Text:sub(1, 6) == "/e hu " and plr.Name == game.Players.LocalPlayer.Name then --Hungarian
  841. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  842. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-hu&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  843. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  844. local A_1 = LocalTranslate_data.text[1]
  845. local A_2 = "All"
  846. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  847. Event:FireServer(A_1, A_2)
  848. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  849. elseif ChatBar.Text:sub(1, 6) == "/e tr " and plr.Name == game.Players.LocalPlayer.Name then --Turkish
  850. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  851. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-tr&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  852. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  853. local A_1 = LocalTranslate_data.text[1]
  854. local A_2 = "All"
  855. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  856. Event:FireServer(A_1, A_2)
  857. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  858. elseif ChatBar.Text:sub(1, 6) == "/e ja " and plr.Name == game.Players.LocalPlayer.Name then --Japanese
  859. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  860. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ja&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  861. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  862. local A_1 = LocalTranslate_data.text[1]
  863. local A_2 = "All"
  864. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  865. Event:FireServer(A_1, A_2)
  866. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  867. elseif ChatBar.Text:sub(1, 6) == "/e no " and plr.Name == game.Players.LocalPlayer.Name then --Norvegian
  868. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  869. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-no&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  870. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  871. local A_1 = LocalTranslate_data.text[1]
  872. local A_2 = "All"
  873. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  874. Event:FireServer(A_1, A_2)
  875. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  876. elseif ChatBar.Text:sub(1, 6) == "/e ro " and plr.Name == game.Players.LocalPlayer.Name then --Romanian
  877. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  878. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ro&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  879. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  880. local A_1 = LocalTranslate_data.text[1]
  881. local A_2 = "All"
  882. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  883. Event:FireServer(A_1, A_2)
  884. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  885. elseif ChatBar.Text:sub(1, 6) == "/e pt " and plr.Name == game.Players.LocalPlayer.Name then --Portoguese
  886. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  887. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-pt&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  888. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  889. local A_1 = LocalTranslate_data.text[1]
  890. local A_2 = "All"
  891. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  892. Event:FireServer(A_1, A_2)
  893. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  894. elseif ChatBar.Text:sub(1, 6) == "/e zh " and plr.Name == game.Players.LocalPlayer.Name then --Chinese
  895. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  896. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-zh&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  897. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  898. local A_1 = LocalTranslate_data.text[1]
  899. local A_2 = "All"
  900. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  901. Event:FireServer(A_1, A_2)
  902. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  903. elseif ChatBar.Text:sub(1, 6) == "/e ko " and plr.Name == game.Players.LocalPlayer.Name then --Chinese
  904. local LocalMessage = ChatBar.Text:sub(7,#ChatBar.Text)
  905. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ko&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  906. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  907. local A_1 = LocalTranslate_data.text[1]
  908. local A_2 = "All"
  909. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  910. Event:FireServer(A_1, A_2)
  911. CreateLabel(game.Players.LocalPlayer.Name,LocalTranslate_data.text[1])
  912. else
  913. if plr.Name == game.Players.LocalPlayer.Name then
  914. local A_1 = ChatBar.Text
  915. local A_2 = "All"
  916. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  917. Event:FireServer(A_1, A_2)
  918. CreateLabel(game.Players.LocalPlayer.Name,ChatBar.Text)
  919. end
  920. end
  921. end
  922. end
  923. end
  924. end)
  925.  
  926. --[[function resizeChatbox()
  927. local property
  928. local TextService = game:GetService("TextService")
  929. local frame = TextService:GetTextSize(ChatBar.Text, 18, Enum.Font.SourceSansBold, Vector2.new(2000, 13))
  930. if property == "Text" or property == "AbsoluteSize" then
  931. if not ChatBar.TextFits or ChatBar.TextBounds.Y < ChatBar.AbsoluteSize.Y and not sizeChangeInProgress then
  932. sizeChangeInProgress = true
  933. wait()
  934. local frame = TextService:GetTextSize(ChatBar.Text, 18, Enum.Font.SourceSansBold, Vector2.new(2000, 13))
  935. local textLines
  936. if frame.X == 0 then
  937. textLines = 1
  938. else
  939. textLines = math.ceil(frame.X/ChatBar.TextBounds.X)
  940. end
  941. local chatSize = 13 * textLines
  942. ChatBar.Size = UDim2.new(.8, 0, 0, chatSize)
  943. ChatBar.Position = UDim2.new(.1, 0, 1, -10 - chatSize)
  944. BoxFrame.Position = UDim2.new(0, 0, 1, -22 - chatSize)
  945. sizeChangeInProgress = false
  946. end
  947. end
  948. end--]]
  949.  
  950. local function updateSize()
  951. local TextService = game:GetService("TextService")
  952. local frame = TextService:GetTextSize(ChatBar.Text, 18, Enum.Font.SourceSansBold, Vector2.new(2000, 18))
  953. local textLines
  954. if frame.X == 0 then
  955. textLines = 1
  956. else
  957. textLines = math.ceil(frame.X/ChatBar.TextBounds.X)
  958. end
  959. local chatSize = 18 * textLines
  960. ChatBar.Size = UDim2.new(0, 355, 0, chatSize)
  961. --ChatBar.Position = UDim2.new(0, 0, 1.5, -10 - chatSize)
  962. BoxFrame.Size = UDim2.new(0, 370, 0.25, 0 + chatSize)
  963. Frame_3.Size = UDim2.new(1, -10, 1, -10 + chatSize+0.25)
  964. Frame_2.Size = UDim2.new(1, 0, 0.56, chatSize*1.25)
  965. --BoxFrame.Position = UDim2.new(0.018, 0, 0.25, -22 + chatSize)
  966. end
  967. ChatBar:GetPropertyChangedSignal("TextBounds"):Connect(updateSize)
  968.  
  969. ChatBar.Changed:connect(function()
  970. ChatBar.Text = ChatBar.Text:sub(1,234);
  971. --[[if ChatBar.Text:sub(1, 5) == "/e de" then
  972. local A_1 = "Cómo estás?"
  973. local A_2 = "All"
  974. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  975. Event:FireServer(A_1, A_2)
  976. end--]]
  977. end)
  978.  
  979. ChatLog = function(plr)
  980. plr.Chatted:Connect(function(Message)
  981. if Message:sub(1, 3) == "/t " or Message:sub(1, 3) == "/w " or Message:sub(1, 3) == "/e " then
  982.  
  983. else
  984. --response_lang = {}
  985. local autoDetect = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/detect?key=".._G.API_KEY.."&text="..HttpService:UrlEncode(Message))
  986. local detect_lan = HttpService:JSONDecode(autoDetect)
  987. --table.insert(response_lang, detect_lan.lang)
  988. local translatedText = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang="..detect_lan.lang.."-en&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(Message))
  989. local data = HttpService:JSONDecode(translatedText)
  990.  
  991.  
  992.  
  993. CreateLabel(plr.Name,Message)
  994.  
  995. if detect_lan.lang == "de" or detect_lan.lang == "ru" or detect_lan.lang == "fr" or detect_lan.lang == "es" or detect_lan.lang == "hu" or detect_lan.lang == "tr" or detect_lan.lang == "ja" or detect_lan.lang == "no" or detect_lan.lang == "ro" or detect_lan.lang == "pt" or detect_lan.lang == "zh" or detect_lan.lang == "ko" then
  996. game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
  997. Text = "Use /e "..tostring(detect_lan.lang).." [text without brackets] to respond.",
  998. Color = Color3.new(1, 0, 0)
  999. })
  1000. game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
  1001. Text = plr.Name..": "..data.text[1],
  1002. Color = Color3.new(1, 0, 0)
  1003. })
  1004. CreateTLabel(plr.Name,data.text[1])
  1005. CreateTLabel("ChatTranslator","Use /e "..tostring(detect_lan.lang).." [text without brackets] to respond.")
  1006. end
  1007.  
  1008.  
  1009.  
  1010. unread_counter = unread_counter + 1
  1011. ChatCounterText2.Text = unread_counter
  1012. end
  1013. if Message:sub(1, 6) == "/e de " and plr.Name == game.Players.LocalPlayer.Name then --German
  1014. local LocalMessage = Message:sub(7,#Message)
  1015. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-de&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1016. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1017. local A_1 = LocalTranslate_data.text[1]
  1018. local A_2 = "All"
  1019. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1020. Event:FireServer(A_1, A_2)
  1021. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1022. end
  1023. if Message:sub(1, 6) == "/e ru " and plr.Name == game.Players.LocalPlayer.Name then --Russian
  1024. local LocalMessage = Message:sub(7,#Message)
  1025. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ru&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1026. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1027. local A_1 = LocalTranslate_data.text[1]
  1028. local A_2 = "All"
  1029. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1030. Event:FireServer(A_1, A_2)
  1031. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1032. end
  1033. if Message:sub(1, 6) == "/e fr " and plr.Name == game.Players.LocalPlayer.Name then --France
  1034. local LocalMessage = Message:sub(7,#Message)
  1035. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-fr&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1036. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1037. local A_1 = LocalTranslate_data.text[1]
  1038. local A_2 = "All"
  1039. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1040. Event:FireServer(A_1, A_2)
  1041. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1042. end
  1043. if Message:sub(1, 6) == "/e es " and plr.Name == game.Players.LocalPlayer.Name then --Spanish
  1044. local LocalMessage = Message:sub(7,#Message)
  1045. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-es&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1046. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1047. local A_1 = LocalTranslate_data.text[1]
  1048. local A_2 = "All"
  1049. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1050. Event:FireServer(A_1, A_2)
  1051. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1052. end
  1053. if Message:sub(1, 6) == "/e hu " and plr.Name == game.Players.LocalPlayer.Name then --Hungarian
  1054. local LocalMessage = Message:sub(7,#Message)
  1055. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-hu&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1056. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1057. local A_1 = LocalTranslate_data.text[1]
  1058. local A_2 = "All"
  1059. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1060. Event:FireServer(A_1, A_2)
  1061. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1062. end
  1063. if Message:sub(1, 6) == "/e tr " and plr.Name == game.Players.LocalPlayer.Name then --Turkish
  1064. local LocalMessage = Message:sub(7,#Message)
  1065. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-tr&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1066. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1067. local A_1 = LocalTranslate_data.text[1]
  1068. local A_2 = "All"
  1069. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1070. Event:FireServer(A_1, A_2)
  1071. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1072. end
  1073. if Message:sub(1, 6) == "/e ja " and plr.Name == game.Players.LocalPlayer.Name then --Japanese
  1074. local LocalMessage = Message:sub(7,#Message)
  1075. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ja&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1076. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1077. local A_1 = LocalTranslate_data.text[1]
  1078. local A_2 = "All"
  1079. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1080. Event:FireServer(A_1, A_2)
  1081. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1082. end
  1083. if Message:sub(1, 6) == "/e no " and plr.Name == game.Players.LocalPlayer.Name then --Norvegian
  1084. local LocalMessage = Message:sub(7,#Message)
  1085. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-no&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1086. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1087. local A_1 = LocalTranslate_data.text[1]
  1088. local A_2 = "All"
  1089. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1090. Event:FireServer(A_1, A_2)
  1091. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1092. end
  1093. if Message:sub(1, 6) == "/e ro " and plr.Name == game.Players.LocalPlayer.Name then --Romanian
  1094. local LocalMessage = Message:sub(7,#Message)
  1095. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ro&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1096. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1097. local A_1 = LocalTranslate_data.text[1]
  1098. local A_2 = "All"
  1099. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1100. Event:FireServer(A_1, A_2)
  1101. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1102. end
  1103. if Message:sub(1, 6) == "/e pt " and plr.Name == game.Players.LocalPlayer.Name then --Portoguese
  1104. local LocalMessage = Message:sub(7,#Message)
  1105. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-pt&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1106. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1107. local A_1 = LocalTranslate_data.text[1]
  1108. local A_2 = "All"
  1109. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1110. Event:FireServer(A_1, A_2)
  1111. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1112. end
  1113. if Message:sub(1, 6) == "/e zh " and plr.Name == game.Players.LocalPlayer.Name then --Chinese
  1114. local LocalMessage = Message:sub(7,#Message)
  1115. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-zh&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1116. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1117. local A_1 = LocalTranslate_data.text[1]
  1118. local A_2 = "All"
  1119. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1120. Event:FireServer(A_1, A_2)
  1121. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1122. end
  1123. if Message:sub(1, 6) == "/e ko " and plr.Name == game.Players.LocalPlayer.Name then --Korean
  1124. local LocalMessage = Message:sub(7,#Message)
  1125. local LocalTranslate = game:HttpGet("https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ko&key=".._G.API_KEY.."&text="..HttpService:UrlEncode(LocalMessage))
  1126. local LocalTranslate_data = HttpService:JSONDecode(LocalTranslate)
  1127. local A_1 = LocalTranslate_data.text[1]
  1128. local A_2 = "All"
  1129. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  1130. Event:FireServer(A_1, A_2)
  1131. CreateLabel(plr.Name,LocalTranslate_data.text[1])
  1132. end
  1133. end)
  1134. end
  1135.  
  1136. for _, plr in pairs(game.Players:GetChildren()) do
  1137. if plr.ClassName == "Player" then
  1138. ChatLog(plr)
  1139. end
  1140. end
  1141.  
  1142. game.Players.PlayerAdded:connect(function(player)
  1143. ChatLog(player)
  1144. end)
  1145.  
  1146. Chat2.Name = "Chat"
  1147. Chat2.Parent = game.CoreGui.RobloxGui.TopBarContainer
  1148. Chat2.BackgroundTransparency = 1.000
  1149. Chat2.Position = UDim2.new(0, 150, 0, 0)
  1150. Chat2.Size = UDim2.new(0, 50, 0, 36)
  1151. Chat2.AutoButtonColor = false
  1152. Chat2.MouseButton1Click:Connect(function()
  1153. if Frame.Visible then
  1154. unread_counter = 0
  1155. ChatCounter2.Visible = true
  1156. Frame.Visible = false
  1157. ChatIcon2.ImageColor3 = Color3.new(255, 255, 255)
  1158. ChatChannelParentFrame.BackgroundTransparency = 1
  1159. ImageButton.BackgroundTransparency = 1
  1160. Frame_2.BackgroundTransparency = 1
  1161. BoxFrame.BackgroundTransparency = 1
  1162. TextLabel.TextTransparency = 1
  1163. elseif not Frame.Visible then
  1164. ChatCounterText2.Text = ""
  1165. ChatCounter2.Visible = false
  1166. unread_counter = 0
  1167. Frame.Visible = true
  1168. ChatIcon2.ImageColor3 = Color3.new(0, 255, 0)
  1169. ChatChannelParentFrame.BackgroundTransparency = 0.6
  1170. ImageButton.BackgroundTransparency = 0.6
  1171. Frame_2.BackgroundTransparency = 0.6
  1172. BoxFrame.BackgroundTransparency = 0.6
  1173. TextLabel.TextTransparency = 0.4
  1174. end
  1175. end)
  1176.  
  1177. ChatIcon2.Name = "ChatIcon"
  1178. ChatIcon2.Parent = Chat2
  1179. ChatIcon2.BackgroundTransparency = 1.000
  1180. ChatIcon2.Position = UDim2.new(0.5, -14, 0.5, -13)
  1181. ChatIcon2.Size = UDim2.new(0, 28, 0, 27)
  1182. ChatIcon2.Image = "rbxasset://textures/ui/Chat/Chat.png"
  1183.  
  1184. ChatCounter2.Name = "ChatCounter"
  1185. ChatCounter2.Parent = ChatIcon2
  1186. ChatCounter2.BackgroundTransparency = 1.000
  1187. ChatCounter2.Position = UDim2.new(1, -12, 0, -4)
  1188. ChatCounter2.Size = UDim2.new(0, 18, 0, 18)
  1189. ChatCounter2.Visible = true
  1190. ChatCounter2.Image = "rbxasset://textures/ui/Chat/MessageCounter.png"
  1191.  
  1192.  
  1193. ChatCounterText2.Name = "ChatCounterText"
  1194. ChatCounterText2.Parent = ChatCounter2
  1195. ChatCounterText2.BackgroundTransparency = 1.000
  1196. ChatCounterText2.BorderSizePixel = 0
  1197. ChatCounterText2.Position = UDim2.new(0.5, -7, 0.5, -7)
  1198. ChatCounterText2.Size = UDim2.new(0, 13, 0, 9)
  1199. ChatCounterText2.Font = Enum.Font.SourceSansBold
  1200. ChatCounterText2.Text = ""
  1201. ChatCounterText2.TextColor3 = Color3.fromRGB(255, 255, 255)
  1202. ChatCounterText2.TextSize = 14.000
Add Comment
Please, Sign In to add comment