Advertisement
ERROR_CODE

Untitled

Aug 26th, 2024 (edited)
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.85 KB | None | 0 0
  1. ScreenGui = Instance.new("ScreenGui")
  2. ChatFrame1 = Instance.new("Frame")
  3. UIChatCorner = Instance.new("UICorner")
  4. UIPadding = Instance.new("UIPadding")
  5. ChatBox = Instance.new("TextBox")
  6. WindowPanel = Instance.new("TextLabel")
  7. UIPanel = Instance.new("UICorner")
  8. closechat = Instance.new("ImageButton")
  9. closechatUI = Instance.new("UICorner")
  10. PictureUICorner = Instance.new("UICorner")
  11. ChatBoxUICorner = Instance.new("UICorner")
  12. SentMassageButton = Instance.new("ImageButton")
  13. SentUICorner = Instance.new("UICorner")
  14. ERROR_CODEPFP1 = Instance.new("ImageButton")
  15. PlayerPFP = Instance.new("ImageButton")
  16. ERROR_CODEPFP2 = Instance.new("ImageButton")
  17. ERROR_CODEPFP1UICorner = Instance.new("UICorner")
  18. ERROR_CODEPFP2UICorner = Instance.new("UICorner")
  19. PlayerUICorner = Instance.new("UICorner")
  20. Message1 = Instance.new("TextLabel")
  21. Message2 = Instance.new("TextLabel")
  22. Message3 = Instance.new("TextLabel")
  23. Message1UICorner = Instance.new("UICorner")
  24. Message2UICorner = Instance.new("UICorner")
  25. Message3UICorner = Instance.new("UICorner")
  26. SettingsButton = Instance.new("ImageButton")
  27. SettingsUICorner = Instance.new("UICorner")
  28. min2 = Instance.new("ImageButton")
  29. min2UICorner = Instance.new("UICorner")
  30. SettingsFrame1 = Instance.new("Frame")
  31. CloseSettingsButton = Instance.new("TextButton")
  32. CloseSettingsButtonUICorner = Instance.new("UICorner")
  33. ScrollingFrameForSettings2 = Instance.new("ScrollingFrame")
  34. LanguageSettingsText = Instance.new("TextLabel")
  35. LanguageSettingsTextUICorner = Instance.new("UICorner")
  36. LanguageButtonRussianDefault = Instance.new("TextButton")
  37. LanguageButtonRussianDefaultUICorner = Instance.new("UICorner")
  38. LanguageButtonEnglish = Instance.new("TextButton")
  39. LanguageButtonEnglishUICorner = Instance.new("UICorner")
  40. LanguageButtonEspanol = Instance.new("TextButton")
  41. LanguageButtonEspanolUICorner = Instance.new("UICorner")
  42. LanguageButtonArabic = Instance.new("TextButton")
  43. LanguageButtonArabicUICorner = Instance.new("UICorner")
  44. LanguageButtonKorean = Instance.new("TextButton")
  45. LanguageButtonKoreanUICorner = Instance.new("UICorner")
  46. agerestrictions = Instance.new("TextLabel")
  47. agerestrictionsUICorner = Instance.new("UICorner")
  48. EighteenDefaultButton = Instance.new("TextButton")
  49. EighteenDefaultButtonUICorner = Instance.new("UICorner")
  50. ThirteenButton = Instance.new("TextButton")
  51. ThirteenButtonUICorner = Instance.new("UICorner")
  52. ThemeText = Instance.new("TextLabel")
  53. ThemeTextUICorner = Instance.new("UICorner")
  54. ThemeButton = Instance.new("ImageButton")
  55. ThemeButtonUICorner = Instance.new("UICorner")
  56. ChatPictureText = Instance.new("TextLabel")
  57. ChatPictureTextUICorner = Instance.new("UICorner")
  58. DefaultPicture1 = Instance.new("ImageButton")
  59. DefaultPicture1UICorner = Instance.new("UICorner")
  60. Picture2 = Instance.new("ImageButton")
  61. Picture2UICorner = Instance.new("UICorner")
  62. Picture3 = Instance.new("ImageButton")
  63. Picture3UICorner = Instance.new("UICorner")
  64. Picture4 = Instance.new("ImageButton")
  65. local Picture4UICorner = Instance.new("UICorner")
  66. Picture5 = Instance.new("ImageButton")
  67. Picture5UICorner = Instance.new("UICorner")
  68. Picture6 = Instance.new("ImageButton")
  69. Picture6UICorner = Instance.new("UICorner")
  70. Picture7 = Instance.new("ImageButton")
  71. Picture7UICorner = Instance.new("UICorner")
  72. Picture8 = Instance.new("ImageButton")
  73. Picture8UICorner = Instance.new("UICorner")
  74. textLabel = Instance.new("TextLabel")
  75. frame = Instance.new("Frame")
  76. ErrorAudio = Instance.new("Sound")
  77. IdErr = "1524549907"
  78. ErrorAudio.Parent = game.Workspace
  79. ErrorAudio.SoundId = "rbxassetid://"..IdErr
  80. ErrorAudio.Looped = false
  81. ErrorAudio.Volume = 1
  82. local SetAudio = Instance.new("Sound")
  83. local Id = "452267918"
  84. SetAudio.Parent = game.Workspace
  85. SetAudio.SoundId = "rbxassetid://"..Id
  86. SetAudio.Looped = false
  87. SetAudio.Volume = 1
  88. SentAudio = Instance.new("Sound")
  89. Id = "7433801607"
  90. SentAudio.Parent = game.Workspace
  91. SentAudio.SoundId = "rbxassetid://"..Id
  92. SentAudio.Looped = false
  93. SentAudio.Volume = 1
  94. OpenChatImageButton = Instance.new("ImageButton")
  95. OpenChatImageButtonUICorner = Instance.new("UICorner")
  96. ChatPicture = Instance.new("ImageLabel", ChatFrame1)
  97. Error = Instance.new("ImageButton")
  98. HttpService = game:GetService("HttpService")
  99. UserInputService = game:GetService("UserInputService")
  100.  
  101.  
  102. function message(getmessage)
  103. text = getmessage
  104. url = "http://api.brainshop.ai/get?bid=169422&key=4GCemcdYgy50PlZ2&uid=09485608450684&msg="..HttpService:UrlEncode(text)
  105. req = HttpService:JSONDecode(url.cnt)
  106. Message3.Text = req.success
  107. end
  108.  
  109.  
  110.  
  111.  
  112. ScreenGui.Parent = game.CoreGui
  113.  
  114. UIPanel.Parent = WindowPanel
  115.  
  116. SettingsFrame1.Visible = false
  117. CloseSettingsButton.Visible = false
  118.  
  119. ChatFrame1.Parent = ScreenGui
  120. ChatFrame1.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  121. ChatFrame1.Position = UDim2.new(0.1, 0, 0.1, 0)
  122. ChatFrame1.LayoutOrder = 5
  123. ChatFrame1.Size = UDim2.new(0, 455, 0, 290)
  124.  
  125. ChatPicture.Image = "rbxassetid://14907812475"
  126. ChatPicture.Size  = ChatFrame1.Size
  127.  
  128. PictureUICorner.Parent = ChatPicture
  129.  
  130. ChatBox.Name = "ChatBox"
  131. ChatBox.Parent = ChatFrame1
  132. ChatBox.BackgroundColor3 = Color3.new(255, 255, 255)
  133. ChatBox.Position = UDim2.new(0.05, 0, 0.79, 0)
  134. ChatBox.Size = UDim2.new(0, 355, 0, 35)
  135. ChatBox.Font = Enum.Font.Code
  136. ChatBox.FontSize = Enum.FontSize.Size18
  137. ChatBox.Text = "enter message here"
  138. ChatBox.TextColor3 = Color3.new(0, 0, 0)
  139. ChatBox.TextSize = 15
  140. ChatBox.TextXAlignment = Enum.TextXAlignment.Left
  141. ChatBox.TextWrapped = true
  142.  
  143. ChatBoxUICorner.Parent = ChatBox
  144.  
  145. UIPadding.Parent = ChatBox
  146. UIPadding.PaddingBottom = UDim.new(10, 10)
  147. UIPadding.PaddingLeft = UDim.new(10, 10)
  148. UIPadding.PaddingRight = UDim.new(10, 10)
  149. UIPadding.PaddingTop = UDim.new(10, 10)
  150.  
  151. WindowPanel.Name = "WindowPanel"
  152. WindowPanel.Parent = ChatFrame1
  153. WindowPanel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  154. WindowPanel.Size = UDim2.new(0, 455, 0, 25)
  155. WindowPanel.Font = Enum.Font.GothamBold
  156. WindowPanel.Text = "AiChat"
  157. WindowPanel.TextColor3 = Color3.fromRGB(0, 0, 0)
  158. WindowPanel.TextScaled = true
  159. WindowPanel.TextSize = 14.000
  160. WindowPanel.TextWrapped = true
  161. WindowPanel.Position = UDim2.new(0, 0, 0, 0)
  162. WindowPanel.TextXAlignment = Enum.TextXAlignment.Left
  163.  
  164. closechat.Name = "closechat"
  165. closechat.Parent = ChatFrame1
  166. closechat.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  167. closechat.Position = UDim2.new(0.94, 0, 0, 0)
  168. closechat.Size = UDim2.new(0, 23, 0, 23)
  169. closechat.Image = "rbxassetid://385868188"
  170. closechat.MouseButton1Down:connect(function()
  171. ScreenGui:Remove()
  172. end)
  173.  
  174. PlayerPFP.Visible = false
  175. ERROR_CODEPFP2.Visible = false
  176. Message2.Visible = false
  177. Message3.Visible = false
  178.  
  179.  
  180.  
  181. SentUICorner.Parent = SentMassageButton
  182.  
  183. ERROR_CODEPFP1.Name = "ERROR_CODEPFP1"
  184. ERROR_CODEPFP1.Parent = ChatFrame1
  185. ERROR_CODEPFP1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  186. ERROR_CODEPFP1.Position = UDim2.new(0.05, 0, 0.2, 0)
  187. ERROR_CODEPFP1.Size = UDim2.new(0, 45, 0, 45)
  188. ERROR_CODEPFP1.Image = "rbxassetid://14891251537"
  189. ERROR_CODEPFP1.Transparency = 0.7
  190. ERROR_CODEPFP1.MouseButton1Down:connect(function()
  191. end)
  192.  
  193. ERROR_CODEPFP1UICorner.Parent = ERROR_CODEPFP1
  194.  
  195. ERROR_CODEPFP2.Name = "ERROR_CODEPFP2"
  196. ERROR_CODEPFP2.Parent = ChatFrame1
  197. ERROR_CODEPFP2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  198. ERROR_CODEPFP2.Position = UDim2.new(0.05, 0, 0.6, 0)
  199. ERROR_CODEPFP2.Size = UDim2.new(0, 45, 0, 45)
  200. ERROR_CODEPFP2.Image = "rbxassetid://14891251537"
  201. ERROR_CODEPFP2.Transparency = 0.7
  202. ERROR_CODEPFP2.MouseButton1Down:connect(function()
  203. end)
  204.  
  205. ERROR_CODEPFP2UICorner.Parent = ERROR_CODEPFP2
  206.  
  207.  
  208. PlayerPFP.Name = "PlayerPFP"
  209. PlayerPFP.Parent = ChatFrame1
  210. PlayerPFP.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  211. PlayerPFP.Position = UDim2.new(0.85, 0, 0.4, 0)
  212. PlayerPFP.Size = UDim2.new(0, 45, 0, 45)
  213. PlayerPFP.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=999&height=999&format=png"
  214. PlayerPFP.Transparency = 0.7
  215. PlayerPFP.MouseButton1Down:connect(function()
  216. end)
  217.  
  218. PlayerUICorner.Parent = PlayerPFP
  219.  
  220.  
  221. Message1.Name = "Message1"
  222. Message1.Parent = ChatFrame1
  223. Message1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  224. Message1.Size = UDim2.new(0, 150, 0, 40)
  225. Message1.Font = Enum.Font.GothamBold
  226. Message1.Text = "Hello/Привет/Hola/مرحبًا/안녕"
  227. Message1.TextColor3 = Color3.fromRGB(0, 0, 0)
  228. Message1.TextScaled = true
  229. Message1.TextSize = 14.000
  230. Message1.TextWrapped = true
  231. Message1.Position = UDim2.new(0.16, 0, 0.22, 0)
  232. Message1.TextXAlignment = Enum.TextXAlignment.Left
  233.  
  234. Message1UICorner.Parent = Message1
  235.  
  236.  
  237. Message2.Name = "Message2"
  238. Message2.Parent = ChatFrame1
  239. Message2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  240. Message2.Size = UDim2.new(0, 150, 0, 40)
  241. Message2.Font = Enum.Font.GothamBold
  242. Message2.Text = ""
  243. Message2.TextColor3 = Color3.fromRGB(0, 0, 0)
  244. Message2.TextScaled = true
  245. Message2.TextSize = 14.000
  246. Message2.TextWrapped = true
  247. Message2.Position = UDim2.new(0.50, 0, 0.4, 0)
  248. Message2.TextXAlignment = Enum.TextXAlignment.Right
  249.  
  250. Message2UICorner.Parent = Message2
  251.  
  252. Message3.Name = "Message3"
  253. Message3.Parent = ChatFrame1
  254. Message3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  255. Message3.Size = UDim2.new(0, 150, 0, 40)
  256. Message3.Font = Enum.Font.GothamBold
  257. Message3.Text = game:HttpGet("http://api.brainshop.ai/get?bid=169422&key=4GCemcdYgy50PlZ2&uid=09485608450684&msg="..ChatBox.Text)
  258. Message3.TextColor3 = Color3.fromRGB(0, 0, 0)
  259. Message3.TextScaled = true
  260. Message3.TextSize = 14.000
  261. Message3.TextWrapped = true
  262. Message3.Position = UDim2.new(0.16, 0, 0.61, 0)
  263. Message3.TextXAlignment = Enum.TextXAlignment.Left
  264.  
  265. SentMassageButton.Name = "SentMassageButton"
  266. SentMassageButton.Parent = ChatFrame1
  267. SentMassageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  268. SentMassageButton.Position = UDim2.new(0.89, 0, 0.79, 0)
  269. SentMassageButton.Size = UDim2.new(0, 33, 0, 33)
  270. SentMassageButton.Image = "rbxassetid://14908005840"
  271. SentMassageButton.Transparency = 0.5
  272. SentMassageButton.MouseButton1Down:connect(function()
  273. Message2.Text = ""..ChatBox.Text
  274. SentAudio.Playing = true
  275. Message2.Visible = true
  276. PlayerPFP.Visible = true
  277. message(ChatBox.Text)
  278. --Message3.Text = game:HttpGet("http://api.brainshop.ai/get?bid=169422&key=4GCemcdYgy50PlZ2&uid=09485608450684&msg="..ChatBox.Text)
  279. ChatBox.Text = ""
  280. ERROR_CODEPFP2.Visible = true
  281. ERROR_CODEPFP1.Visible = false
  282. Message1.Visible = false
  283. Message3.Visible = true
  284. end)
  285.  
  286. Message3UICorner.Parent = Message3
  287.  
  288. UIChatCorner.Parent = ChatFrame1
  289.  
  290. closechatUI.Parent = closechat
  291.  
  292. min2.Name = "min2"
  293. min2.Parent = ChatFrame1
  294. min2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  295. min2.Position = UDim2.new(0.88, 0, 0, 0)
  296. min2.Size = UDim2.new(0, 23, 0, 23)
  297. min2.Image = "rbxassetid://14898254454"
  298. min2.MouseButton1Down:connect(function()
  299. ChatFrame1.Visible = false
  300. OpenChatImageButton.Visible = true
  301. end)
  302.  
  303. min2UICorner.Parent = min2
  304.  
  305. SettingsButton.Name = "SettingsButton"
  306. SettingsButton.Parent = ChatFrame1
  307. SettingsButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  308. SettingsButton.Position = UDim2.new(0.819, 0, 0, 0)
  309. SettingsButton.Size = UDim2.new(0, 23, 0, 23)
  310. SettingsButton.Image = "rbxassetid://14925215448"
  311. SettingsButton.Transparency = 1
  312.  
  313.  
  314. OpenChatImageButton.Name = "OpenChatImageButton"
  315. OpenChatImageButton.Parent = ScreenGui
  316. OpenChatImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  317. OpenChatImageButton.Position = UDim2.new(0.95, 0, 0.4, 0)
  318. OpenChatImageButton.Size = UDim2.new(0, 45, 0, 45)
  319. OpenChatImageButton.Image = "rbxassetid://15117396838"
  320. OpenChatImageButton.Transparency = 1
  321. OpenChatImageButton.MouseButton1Up:connect(function()
  322. ChatFrame1.Visible = true
  323. OpenChatImageButton.Visible = false
  324. end)
  325.  
  326. OpenChatImageButton.Visible = false
  327.  
  328. OpenChatImageButtonUICorner.Parent = OpenChatImageButton
  329.  
  330. local UserInputService = game:GetService("UserInputService")
  331. local gui = OpenChatImageButton
  332.  
  333. local dragging
  334. local dragInput
  335. local dragStart
  336. local startPos
  337.  
  338. local function update(input)
  339.     local delta = input.Position - dragStart
  340.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  341. end
  342.  
  343. gui.InputBegan:Connect(function(input)
  344.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  345.         dragging = true
  346.         dragStart = input.Position
  347.         startPos = gui.Position
  348.  
  349.         input.Changed:Connect(function()
  350.             if input.UserInputState == Enum.UserInputState.End then
  351.                 dragging = false
  352.             end
  353.         end)
  354.     end
  355. end)
  356.  
  357. gui.InputChanged:Connect(function(input)
  358.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  359.         dragInput = input
  360.     end
  361. end)
  362.  
  363. UserInputService.InputChanged:Connect(function(input)
  364.     if input == dragInput and dragging then
  365.         update(input)
  366.     end
  367. end)
  368.  
  369. local UserInputService = game:GetService("UserInputService")
  370. local gui = ChatFrame1
  371.  
  372. local dragging
  373. local dragInput
  374. local dragStart
  375. local startPos
  376.  
  377. local function update(input)
  378.     local delta = input.Position - dragStart
  379.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  380. end
  381.  
  382. gui.InputBegan:Connect(function(input)
  383.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  384.         dragging = true
  385.         dragStart = input.Position
  386.         startPos = gui.Position
  387.  
  388.         input.Changed:Connect(function()
  389.             if input.UserInputState == Enum.UserInputState.End then
  390.                 dragging = false
  391.             end
  392.         end)
  393.     end
  394. end)
  395.  
  396. gui.InputChanged:Connect(function(input)
  397.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  398.         dragInput = input
  399.     end
  400. end)
  401.  
  402. UserInputService.InputChanged:Connect(function(input)
  403.     if input == dragInput and dragging then
  404.         update(input)
  405.     end
  406. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement