Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script do Bot
- local player = game.Players.LocalPlayer
- -- Perguntas e respostas sobre o script
- local botResponses = {
- ["Como ativar o teleporte?"] = "Para ativar o teleporte, clique no botão correspondente na interface.",
- ["Como ativar o ESP?"] = "Clique no botão 'Ativar ESP' na interface para visualizar os outros jogadores.",
- ["Como desativar o ESP?"] = "Clique no botão 'Desativar ESP' para ocultar os jogadores.",
- ["Quem desenvolveu este script?"] = "Este script foi desenvolvido por GL.",
- ["Como voltar para a posição original?"] = "Utilize o botão 'Voltar à Posição' na interface.",
- ["Como fechar a interface?"] = "Clique no botão 'X' no canto superior direito para fechar a interface.",
- }
- -- Função para criar a interface do bot
- local function createBotUI()
- local botGui = Instance.new("ScreenGui")
- local botFrame = Instance.new("Frame")
- local questionLabel = Instance.new("TextLabel")
- local responseLabel = Instance.new("TextLabel")
- local questionInput = Instance.new("TextBox")
- local askButton = Instance.new("TextButton")
- -- Configuração da UI
- botGui.Parent = player:WaitForChild("PlayerGui")
- botFrame.Parent = botGui
- botFrame.Size = UDim2.new(0, 300, 0, 200)
- botFrame.Position = UDim2.new(0.5, -150, 0.5, -100)
- botFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- botFrame.Active = true
- botFrame.Draggable = true
- questionLabel.Parent = botFrame
- questionLabel.Size = UDim2.new(1, 0, 0, 30)
- questionLabel.Text = "Pergunte ao bot:"
- questionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- questionLabel.BackgroundTransparency = 1
- questionLabel.TextScaled = true
- questionInput.Parent = botFrame
- questionInput.Size = UDim2.new(1, 0, 0, 40)
- questionInput.Position = UDim2.new(0, 0, 0, 30)
- questionInput.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- questionInput.PlaceholderText = "Digite sua pergunta..."
- askButton.Parent = botFrame
- askButton.Size = UDim2.new(1, 0, 0, 40)
- askButton.Position = UDim2.new(0, 0, 0, 70)
- askButton.Text = "Perguntar"
- askButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
- responseLabel.Parent = botFrame
- responseLabel.Size = UDim2.new(1, 0, 0, 80)
- responseLabel.Position = UDim2.new(0, 0, 0, 120)
- responseLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- responseLabel.BackgroundTransparency = 1
- responseLabel.TextScaled = true
- responseLabel.TextWrapped = true
- -- Função para responder perguntas
- local function respondToQuestion()
- local question = questionInput.Text
- local response = botResponses[question] or "Desculpe, não entendi a pergunta."
- responseLabel.Text = response
- end
- -- Conectar o botão de perguntar à função de resposta
- askButton.MouseButton1Click:Connect(respondToQuestion)
- -- Limpar o campo de entrada após perguntar
- questionInput.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- questionInput.Text = ""
- end
- end)
- end
- -- Criar a interface do bot
- createBotUI()
Advertisement
Add Comment
Please, Sign In to add comment