Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScreenGui = Instance.new("ScreenGui")
- ChatFrame1 = Instance.new("Frame")
- UIChatCorner = Instance.new("UICorner")
- UIPadding = Instance.new("UIPadding")
- ChatBox = Instance.new("TextBox")
- WindowPanel = Instance.new("TextLabel")
- UIPanel = Instance.new("UICorner")
- closechat = Instance.new("ImageButton")
- closechatUI = Instance.new("UICorner")
- PictureUICorner = Instance.new("UICorner")
- ChatBoxUICorner = Instance.new("UICorner")
- SentMassageButton = Instance.new("ImageButton")
- SentUICorner = Instance.new("UICorner")
- ERROR_CODEPFP1 = Instance.new("ImageButton")
- PlayerPFP = Instance.new("ImageButton")
- ERROR_CODEPFP2 = Instance.new("ImageButton")
- ERROR_CODEPFP1UICorner = Instance.new("UICorner")
- ERROR_CODEPFP2UICorner = Instance.new("UICorner")
- PlayerUICorner = Instance.new("UICorner")
- Message1 = Instance.new("TextLabel")
- Message2 = Instance.new("TextLabel")
- Message3 = Instance.new("TextLabel")
- Message1UICorner = Instance.new("UICorner")
- Message2UICorner = Instance.new("UICorner")
- Message3UICorner = Instance.new("UICorner")
- SettingsButton = Instance.new("ImageButton")
- SettingsUICorner = Instance.new("UICorner")
- min2 = Instance.new("ImageButton")
- min2UICorner = Instance.new("UICorner")
- SettingsFrame1 = Instance.new("Frame")
- CloseSettingsButton = Instance.new("TextButton")
- CloseSettingsButtonUICorner = Instance.new("UICorner")
- ScrollingFrameForSettings2 = Instance.new("ScrollingFrame")
- LanguageSettingsText = Instance.new("TextLabel")
- LanguageSettingsTextUICorner = Instance.new("UICorner")
- LanguageButtonRussianDefault = Instance.new("TextButton")
- LanguageButtonRussianDefaultUICorner = Instance.new("UICorner")
- LanguageButtonEnglish = Instance.new("TextButton")
- LanguageButtonEnglishUICorner = Instance.new("UICorner")
- LanguageButtonEspanol = Instance.new("TextButton")
- LanguageButtonEspanolUICorner = Instance.new("UICorner")
- LanguageButtonArabic = Instance.new("TextButton")
- LanguageButtonArabicUICorner = Instance.new("UICorner")
- LanguageButtonKorean = Instance.new("TextButton")
- LanguageButtonKoreanUICorner = Instance.new("UICorner")
- agerestrictions = Instance.new("TextLabel")
- agerestrictionsUICorner = Instance.new("UICorner")
- EighteenDefaultButton = Instance.new("TextButton")
- EighteenDefaultButtonUICorner = Instance.new("UICorner")
- ThirteenButton = Instance.new("TextButton")
- ThirteenButtonUICorner = Instance.new("UICorner")
- ThemeText = Instance.new("TextLabel")
- ThemeTextUICorner = Instance.new("UICorner")
- ThemeButton = Instance.new("ImageButton")
- ThemeButtonUICorner = Instance.new("UICorner")
- ChatPictureText = Instance.new("TextLabel")
- ChatPictureTextUICorner = Instance.new("UICorner")
- DefaultPicture1 = Instance.new("ImageButton")
- DefaultPicture1UICorner = Instance.new("UICorner")
- Picture2 = Instance.new("ImageButton")
- Picture2UICorner = Instance.new("UICorner")
- Picture3 = Instance.new("ImageButton")
- Picture3UICorner = Instance.new("UICorner")
- Picture4 = Instance.new("ImageButton")
- local Picture4UICorner = Instance.new("UICorner")
- Picture5 = Instance.new("ImageButton")
- Picture5UICorner = Instance.new("UICorner")
- Picture6 = Instance.new("ImageButton")
- Picture6UICorner = Instance.new("UICorner")
- Picture7 = Instance.new("ImageButton")
- Picture7UICorner = Instance.new("UICorner")
- Picture8 = Instance.new("ImageButton")
- Picture8UICorner = Instance.new("UICorner")
- textLabel = Instance.new("TextLabel")
- frame = Instance.new("Frame")
- ErrorAudio = Instance.new("Sound")
- IdErr = "1524549907"
- ErrorAudio.Parent = game.Workspace
- ErrorAudio.SoundId = "rbxassetid://"..IdErr
- ErrorAudio.Looped = false
- ErrorAudio.Volume = 1
- local SetAudio = Instance.new("Sound")
- local Id = "452267918"
- SetAudio.Parent = game.Workspace
- SetAudio.SoundId = "rbxassetid://"..Id
- SetAudio.Looped = false
- SetAudio.Volume = 1
- SentAudio = Instance.new("Sound")
- Id = "7433801607"
- SentAudio.Parent = game.Workspace
- SentAudio.SoundId = "rbxassetid://"..Id
- SentAudio.Looped = false
- SentAudio.Volume = 1
- OpenChatImageButton = Instance.new("ImageButton")
- OpenChatImageButtonUICorner = Instance.new("UICorner")
- ChatPicture = Instance.new("ImageLabel", ChatFrame1)
- Error = Instance.new("ImageButton")
- HttpService = game:GetService("HttpService")
- UserInputService = game:GetService("UserInputService")
- function message(getmessage)
- text = getmessage
- url = "http://api.brainshop.ai/get?bid=169422&key=4GCemcdYgy50PlZ2&uid=09485608450684&msg="..HttpService:UrlEncode(text)
- req = HttpService:JSONDecode(url.cnt)
- Message3.Text = req.success
- end
- ScreenGui.Parent = game.CoreGui
- UIPanel.Parent = WindowPanel
- SettingsFrame1.Visible = false
- CloseSettingsButton.Visible = false
- ChatFrame1.Parent = ScreenGui
- ChatFrame1.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ChatFrame1.Position = UDim2.new(0.1, 0, 0.1, 0)
- ChatFrame1.LayoutOrder = 5
- ChatFrame1.Size = UDim2.new(0, 455, 0, 290)
- ChatPicture.Image = "rbxassetid://14907812475"
- ChatPicture.Size = ChatFrame1.Size
- PictureUICorner.Parent = ChatPicture
- ChatBox.Name = "ChatBox"
- ChatBox.Parent = ChatFrame1
- ChatBox.BackgroundColor3 = Color3.new(255, 255, 255)
- ChatBox.Position = UDim2.new(0.05, 0, 0.79, 0)
- ChatBox.Size = UDim2.new(0, 355, 0, 35)
- ChatBox.Font = Enum.Font.Code
- ChatBox.FontSize = Enum.FontSize.Size18
- ChatBox.Text = "enter message here"
- ChatBox.TextColor3 = Color3.new(0, 0, 0)
- ChatBox.TextSize = 15
- ChatBox.TextXAlignment = Enum.TextXAlignment.Left
- ChatBox.TextWrapped = true
- ChatBoxUICorner.Parent = ChatBox
- UIPadding.Parent = ChatBox
- UIPadding.PaddingBottom = UDim.new(10, 10)
- UIPadding.PaddingLeft = UDim.new(10, 10)
- UIPadding.PaddingRight = UDim.new(10, 10)
- UIPadding.PaddingTop = UDim.new(10, 10)
- WindowPanel.Name = "WindowPanel"
- WindowPanel.Parent = ChatFrame1
- WindowPanel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- WindowPanel.Size = UDim2.new(0, 455, 0, 25)
- WindowPanel.Font = Enum.Font.GothamBold
- WindowPanel.Text = "AiChat"
- WindowPanel.TextColor3 = Color3.fromRGB(0, 0, 0)
- WindowPanel.TextScaled = true
- WindowPanel.TextSize = 14.000
- WindowPanel.TextWrapped = true
- WindowPanel.Position = UDim2.new(0, 0, 0, 0)
- WindowPanel.TextXAlignment = Enum.TextXAlignment.Left
- closechat.Name = "closechat"
- closechat.Parent = ChatFrame1
- closechat.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- closechat.Position = UDim2.new(0.94, 0, 0, 0)
- closechat.Size = UDim2.new(0, 23, 0, 23)
- closechat.Image = "rbxassetid://385868188"
- closechat.MouseButton1Down:connect(function()
- ScreenGui:Remove()
- end)
- PlayerPFP.Visible = false
- ERROR_CODEPFP2.Visible = false
- Message2.Visible = false
- Message3.Visible = false
- SentUICorner.Parent = SentMassageButton
- ERROR_CODEPFP1.Name = "ERROR_CODEPFP1"
- ERROR_CODEPFP1.Parent = ChatFrame1
- ERROR_CODEPFP1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ERROR_CODEPFP1.Position = UDim2.new(0.05, 0, 0.2, 0)
- ERROR_CODEPFP1.Size = UDim2.new(0, 45, 0, 45)
- ERROR_CODEPFP1.Image = "rbxassetid://14891251537"
- ERROR_CODEPFP1.Transparency = 0.7
- ERROR_CODEPFP1.MouseButton1Down:connect(function()
- end)
- ERROR_CODEPFP1UICorner.Parent = ERROR_CODEPFP1
- ERROR_CODEPFP2.Name = "ERROR_CODEPFP2"
- ERROR_CODEPFP2.Parent = ChatFrame1
- ERROR_CODEPFP2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ERROR_CODEPFP2.Position = UDim2.new(0.05, 0, 0.6, 0)
- ERROR_CODEPFP2.Size = UDim2.new(0, 45, 0, 45)
- ERROR_CODEPFP2.Image = "rbxassetid://14891251537"
- ERROR_CODEPFP2.Transparency = 0.7
- ERROR_CODEPFP2.MouseButton1Down:connect(function()
- end)
- ERROR_CODEPFP2UICorner.Parent = ERROR_CODEPFP2
- PlayerPFP.Name = "PlayerPFP"
- PlayerPFP.Parent = ChatFrame1
- PlayerPFP.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PlayerPFP.Position = UDim2.new(0.85, 0, 0.4, 0)
- PlayerPFP.Size = UDim2.new(0, 45, 0, 45)
- PlayerPFP.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=999&height=999&format=png"
- PlayerPFP.Transparency = 0.7
- PlayerPFP.MouseButton1Down:connect(function()
- end)
- PlayerUICorner.Parent = PlayerPFP
- Message1.Name = "Message1"
- Message1.Parent = ChatFrame1
- Message1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Message1.Size = UDim2.new(0, 150, 0, 40)
- Message1.Font = Enum.Font.GothamBold
- Message1.Text = "Hello/Привет/Hola/مرحبًا/안녕"
- Message1.TextColor3 = Color3.fromRGB(0, 0, 0)
- Message1.TextScaled = true
- Message1.TextSize = 14.000
- Message1.TextWrapped = true
- Message1.Position = UDim2.new(0.16, 0, 0.22, 0)
- Message1.TextXAlignment = Enum.TextXAlignment.Left
- Message1UICorner.Parent = Message1
- Message2.Name = "Message2"
- Message2.Parent = ChatFrame1
- Message2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Message2.Size = UDim2.new(0, 150, 0, 40)
- Message2.Font = Enum.Font.GothamBold
- Message2.Text = ""
- Message2.TextColor3 = Color3.fromRGB(0, 0, 0)
- Message2.TextScaled = true
- Message2.TextSize = 14.000
- Message2.TextWrapped = true
- Message2.Position = UDim2.new(0.50, 0, 0.4, 0)
- Message2.TextXAlignment = Enum.TextXAlignment.Right
- Message2UICorner.Parent = Message2
- Message3.Name = "Message3"
- Message3.Parent = ChatFrame1
- Message3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Message3.Size = UDim2.new(0, 150, 0, 40)
- Message3.Font = Enum.Font.GothamBold
- Message3.Text = game:HttpGet("http://api.brainshop.ai/get?bid=169422&key=4GCemcdYgy50PlZ2&uid=09485608450684&msg="..ChatBox.Text)
- Message3.TextColor3 = Color3.fromRGB(0, 0, 0)
- Message3.TextScaled = true
- Message3.TextSize = 14.000
- Message3.TextWrapped = true
- Message3.Position = UDim2.new(0.16, 0, 0.61, 0)
- Message3.TextXAlignment = Enum.TextXAlignment.Left
- SentMassageButton.Name = "SentMassageButton"
- SentMassageButton.Parent = ChatFrame1
- SentMassageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SentMassageButton.Position = UDim2.new(0.89, 0, 0.79, 0)
- SentMassageButton.Size = UDim2.new(0, 33, 0, 33)
- SentMassageButton.Image = "rbxassetid://14908005840"
- SentMassageButton.Transparency = 0.5
- SentMassageButton.MouseButton1Down:connect(function()
- Message2.Text = ""..ChatBox.Text
- SentAudio.Playing = true
- Message2.Visible = true
- PlayerPFP.Visible = true
- message(ChatBox.Text)
- --Message3.Text = game:HttpGet("http://api.brainshop.ai/get?bid=169422&key=4GCemcdYgy50PlZ2&uid=09485608450684&msg="..ChatBox.Text)
- ChatBox.Text = ""
- ERROR_CODEPFP2.Visible = true
- ERROR_CODEPFP1.Visible = false
- Message1.Visible = false
- Message3.Visible = true
- end)
- Message3UICorner.Parent = Message3
- UIChatCorner.Parent = ChatFrame1
- closechatUI.Parent = closechat
- min2.Name = "min2"
- min2.Parent = ChatFrame1
- min2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- min2.Position = UDim2.new(0.88, 0, 0, 0)
- min2.Size = UDim2.new(0, 23, 0, 23)
- min2.Image = "rbxassetid://14898254454"
- min2.MouseButton1Down:connect(function()
- ChatFrame1.Visible = false
- OpenChatImageButton.Visible = true
- end)
- min2UICorner.Parent = min2
- SettingsButton.Name = "SettingsButton"
- SettingsButton.Parent = ChatFrame1
- SettingsButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- SettingsButton.Position = UDim2.new(0.819, 0, 0, 0)
- SettingsButton.Size = UDim2.new(0, 23, 0, 23)
- SettingsButton.Image = "rbxassetid://14925215448"
- SettingsButton.Transparency = 1
- OpenChatImageButton.Name = "OpenChatImageButton"
- OpenChatImageButton.Parent = ScreenGui
- OpenChatImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- OpenChatImageButton.Position = UDim2.new(0.95, 0, 0.4, 0)
- OpenChatImageButton.Size = UDim2.new(0, 45, 0, 45)
- OpenChatImageButton.Image = "rbxassetid://15117396838"
- OpenChatImageButton.Transparency = 1
- OpenChatImageButton.MouseButton1Up:connect(function()
- ChatFrame1.Visible = true
- OpenChatImageButton.Visible = false
- end)
- OpenChatImageButton.Visible = false
- OpenChatImageButtonUICorner.Parent = OpenChatImageButton
- local UserInputService = game:GetService("UserInputService")
- local gui = OpenChatImageButton
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- local UserInputService = game:GetService("UserInputService")
- local gui = ChatFrame1
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement