Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Função fictícia para ativar o farm do Stand
- local function ativarFarm(nomeStand)
- -- Configurações globais
- getgenv().WantedStand = nomeStand -- Nome do Stand selecionado
- getgenv().DelayInSeconds = 8 -- Tempo de delay em segundos (ajuste conforme necessário)
- getgenv().Webhook = "" -- Deixe em branco se não quiser usar webhook
- -- Função do Webhook
- local HttpService = game:GetService("HttpService")
- function WebhookFunc(Message)
- local start = game:HttpGet("http://buritoman69.glitch.me")
- local biggie = "http://buritoman69.glitch.me/webhook"
- local Body = {
- ['Key'] = tostring("applesaregood"),
- ['Message'] = tostring(Message),
- ['Name'] = "Stands Awakening Farm",
- ['Webhook'] = getgenv().Webhook
- }
- Body = HttpService:JSONEncode(Body)
- local Data = game:HttpPost(biggie, Body, false, "application/json")
- return Data or nil
- end
- -- Função de Notificação
- local function Notification(Title, Text)
- game.StarterGui:SetCore("SendNotification", {
- Title = Title,
- Text = Text,
- Duration = 5,
- })
- end
- -- Verifica se o nome do Stand está correto
- local Stands = {
- "Anubis", "D4C", "OMT", "CrazyDiamond", "DoppioKingCrimson",
- "KillerQueen", "GoldExperience", "StarPlatinum", "StarPlatinumTW",
- "TheWorld", "HierophantGreen", "Whitesnake", "TheWorldAlternateUniverse",
- "WhitesnakeAU", "KingCrimsonAU", "SoftAndWetShiny", "StarPlatinumOVA",
- "TheWorldOVA", "NTWAU", "CreeperQueen", "SPTW", "StickyFingers", "SoftAndWet"
- }
- if not table.find(Stands, getgenv().WantedStand) then
- if getgenv().Webhook ~= "" then
- return WebhookFunc("Stand name typed incorrectly.")
- else
- return Notification("Notification", "Stand name typed incorrectly.")
- end
- end
- -- Start the farm (check for Enabled moved to stand selection logic)
- getgenv().Enabled = true
- if getgenv().Webhook ~= "" then
- WebhookFunc("Running stand farm.")
- else
- Notification("Notification", "Running stand farm.")
- end
- -- Código do farm simplificado
- local Divided = getgenv().DelayInSeconds / 4
- local Find = getgenv().WantedStand:lower() == "creeperqueen" and "CreeperQueen" or "STAND"
- if getgenv().WantedStand:lower() == "killerqueen" then
- Find = "KillerQueen"
- end
- -- Anti-AFK
- game:GetService("Players").LocalPlayer.Idled:Connect(function()
- game:GetService("VirtualUser"):Button2Down(Vector2.new(0, 0), game:GetService("Workspace").CurrentCamera.CFrame)
- wait(1)
- game:GetService("VirtualUser"):Button2Up(Vector2.new(0, 0), game:GetService("Workspace").CurrentCamera.CFrame)
- end)
- --Main Farm
- local function StandFarm()
- if stopFarmButtonClicked then
- return
- end
- pcall(function()
- repeat
- wait(Divided)
- if stopFarmButtonClicked then
- return
- end
- game:GetService("Players").LocalPlayer.Character.Humanoid:EquipTool(workspace:FindFirstChild("Rokakaka Fruit"))
- game:GetService("Players").LocalPlayer.Character.Humanoid:EquipTool(game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Rokakaka Fruit"))
- game:GetService("ReplicatedStorage").ItemEvents.Roka:FireServer()
- wait(Divided)
- if stopFarmButtonClicked then
- return
- end
- game:GetService("Players").LocalPlayer.Character.Humanoid:EquipTool(workspace:FindFirstChild("Arrow"))
- game:GetService("Players").LocalPlayer.Character.Humanoid:EquipTool(game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Arrow"))
- game:GetService("ReplicatedStorage").ItemEvents.Arrow:FireServer()
- wait(Divided)
- if stopFarmButtonClicked then
- return
- end
- game:GetService("ReplicatedStorage").Main.Input:FireServer("Alternate", "Appear", false)
- game:GetService("ReplicatedStorage").Main.Input:FireServer("Alternate", "Dodge")
- wait(Divided)
- until game:GetService("Players").LocalPlayer.Backpack:FindFirstChild(Find, true).Value:lower() == getgenv().WantedStand:lower() or game:GetService("Players").LocalPlayer.Backpack:FindFirstChild(Find, true).Name:lower() == getgenv().WantedStand:lower()
- end)
- if game:GetService("Players").LocalPlayer.Backpack:FindFirstChild(Find, true) == nil then
- StandFarm()
- end
- stopFarmButtonClicked = false -- Reset the flag AFTER the stand is acquired
- end
- -- Inicia o farm
- StandFarm()
- -- Loop para verificar se o Stand foi encontrado
- repeat
- wait()
- until game:GetService("Players").LocalPlayer.Backpack:FindFirstChild(Find, true).Value:lower() == getgenv().WantedStand:lower() or game:GetService("Players").LocalPlayer.Backpack:FindFirstChild(Find, true).Name:lower() == getgenv().WantedStand:lower()
- getgenv().Enabled = false
- if getgenv().Webhook ~= "" then
- WebhookFunc("Stand acquired!")
- else
- Notification("Notification", "Stand acquired!")
- end
- game:GetService("ReplicatedStorage").Main.Input:FireServer("Alternate", "Appear", true)
- end
- -- Função para iniciar o arrasto do menu
- local function iniciarArrasto(frame, barra)
- local arrastando = false
- local posicaoInicial
- local diferencaPosicao
- local function iniciar(input)
- local tipoInput = input.UserInputType
- if tipoInput == Enum.UserInputType.Touch or tipoInput == Enum.UserInputType.MouseButton1 then
- arrastando = true
- posicaoInicial = Vector2.new(input.Position.X, input.Position.Y)
- diferencaPosicao = frame.Position - UDim2.new(0, posicaoInicial.X, 0, posicaoInicial.Y)
- end
- end
- local function mover(input)
- local tipoInput = input.UserInputType
- if arrastando and (tipoInput == Enum.UserInputType.Touch or tipoInput == Enum.UserInputType.MouseMovement) then
- local novaPosicao = Vector2.new(input.Position.X, input.Position.Y)
- frame.Position = UDim2.new(0, novaPosicao.X, 0, novaPosicao.Y) + diferencaPosicao
- end
- end
- local function parar(input)
- local tipoInput = input.UserInputType
- if tipoInput == Enum.UserInputType.Touch or tipoInput == Enum.UserInputType.MouseButton1 then
- arrastando = false
- end
- end
- barra.InputBegan:Connect(iniciar)
- barra.InputChanged:Connect(mover)
- barra.InputEnded:Connect(parar)
- frame.InputBegan:Connect(iniciar)
- frame.InputChanged:Connect(mover)
- frame.InputEnded:Connect(parar)
- end
- -- Criar o menu com os botões para cada Stand
- local function criarMenuStands()
- local gui = Instance.new("ScreenGui", game.Players.LocalPlayer:WaitForChild("PlayerGui"))
- gui.ResetOnSpawn = false
- local frame = Instance.new("Frame", gui)
- frame.Size = UDim2.new(0, 250, 0, 400)
- frame.Position = UDim2.new(0.5, -125, 0.5, -200)
- frame.BackgroundTransparency = 0.5
- local topBorder = Instance.new("Frame", frame)
- topBorder.Size = UDim2.new(1, 0, 0, 20)
- topBorder.BackgroundColor3 = Color3.new(1, 1, 1) -- Alterado para branco
- topBorder.Position = UDim2.new(0, 0, 0, -20)
- local textoCreditos = Instance.new("TextLabel", topBorder)
- textoCreditos.Text = "By: mandy_dos_candys" -- Texto alterado para "By: Ameno"
- textoCreditos.Size = UDim2.new(1, -10, 1, 0)
- textoCreditos.Position = UDim2.new(0, 5, 0, 0)
- textoCreditos.TextColor3 = Color3.new(0, 0, 0) -- Texto alterado para preto
- textoCreditos.BackgroundTransparency = 1
- local stopFarmButton = Instance.new("TextButton", frame)
- stopFarmButton.Size = UDim2.new(1, -10, 0, 30)
- stopFarmButton.Position = UDim2.new(0, 5, 0, 0) -- Movido para o início da lista
- stopFarmButton.Text = "Stop Farm"
- stopFarmButton.BackgroundColor3 = Color3.new(1, 0, 0) -- Alterado para vermelho
- stopFarmButton.TextColor3 = Color3.new(1, 1, 1)
- stopFarmButton.MouseButton1Click:Connect(function()
- stopFarmButtonClicked = true -- Sinaliza que o farm deve ser parado
- selectedStand = nil -- Limpa o Stand selecionado
- for _, button in ipairs(buttonList) do
- button.BackgroundColor3 = Color3.new(1, 1, 1) -- Reseta a cor dos botões
- end
- if getgenv().Enabled then
- getgenv().Enabled = false -- Stop the previous farm
- if getgenv().Webhook ~= "" then
- WebhookFunc("Stopping previous farm.")
- else
- Notification("Notification", "Stopping previous farm.")
- end
- end
- end)
- local buttonPositions = {
- "Anubis",
- "D4C",
- "OMT",
- "CrazyDiamond",
- "DoppioKingCrimson",
- "KillerQueen",
- "GoldExperience",
- "StarPlatinum",
- "StarPlatinumTW",
- "TheWorld",
- "HierophantGreen",
- "Whitesnake",
- "TheWorldAlternateUniverse",
- "WhitesnakeAU",
- "KingCrimsonAU",
- "SoftAndWetShiny",
- "StarPlatinumOVA",
- "TheWorldOVA",
- "NTWAU",
- "CreeperQueen",
- "SPTW",
- "StickyFingers",
- "SoftAndWet"
- }
- local selectedStand = nil -- Variável para armazenar o Stand selecionado
- local stopFarmButtonClicked = false -- Variável para rastrear se o botão "Stop Farm" foi clicado
- local buttonList = {}
- for i, standName in ipairs(buttonPositions) do
- local button = Instance.new("TextButton", frame)
- button.Size = UDim2.new(1, -10, 0, 30)
- button.Position = UDim2.new(0, 5, 0, (i) * 35) -- Ajustado para começar após o botão "Stop Farm"
- button.Text = standName
- button.BackgroundColor3 = Color3.new(1, 1, 1)
- button.TextColor3 = Color3.new(0, 0, 0)
- button.MouseButton1Click:Connect(function()
- -- Verificar se o botão "Stop Farm" foi clicado
- if not stopFarmButtonClicked then
- -- Se nenhum Stand estiver selecionado, selecione o atual
- if selectedStand == nil then
- selectedStand = standName
- button.BackgroundColor3 = Color3.new(0, 1, 0) -- Alterado para verde para indicar seleção
- ativarFarm(standName)
- StandFarm() -- Restart the StandFarm function for the new stand
- -- Se o Stand selecionado for o mesmo, desmarque
- elseif selectedStand == standName then
- selectedStand = nil
- button.BackgroundColor3 = Color3.new(1, 1, 1) -- Alterado para branco para indicar desseleção
- -- Adicione aqui qualquer ação adicional ao desselecionar o Stand
- -- Se um Stand diferente estiver selecionado, altere a seleção
- else
- buttonList[table.find(buttonPositions, selectedStand)].BackgroundColor3 = Color3.new(1, 1, 1) -- Desmarca o Stand anterior
- selectedStand = standName
- button.BackgroundColor3 = Color3.new(0, 1, 0) -- Marca o novo Stand
- if getgenv().Enabled then
- getgenv().Enabled = false -- Stop the previous farm
- if getgenv().Webhook ~= "" then
- WebhookFunc("Stopping previous farm.")
- else
- Notification("Notification", "Stopping previous farm.")
- end
- end
- ativarFarm(standName) -- Inicia o farm para o novo Stand
- StandFarm() -- Restart the StandFarm function for the new stand
- end
- else
- -- Caso o botão "Stop Farm" tenha sido clicado, reinicia o farm para o novo Stand
- stopFarmButtonClicked = false -- Reinicia a flag
- selectedStand = standName
- button.BackgroundColor3 = Color3.new(0, 1, 0) -- Marca o novo Stand
- ativarFarm(standName) -- Inicia o farm para o novo Stand
- StandFarm() -- Restart the StandFarm function for the new stand
- end
- end)
- table.insert(buttonList, button)
- end
- local scrollFrame = Instance.new("ScrollingFrame", frame)
- scrollFrame.Size = UDim2.new(1, 0, 1, -40) -- Reduzido para acomodar o botão "Stop Farm"
- scrollFrame.Position = UDim2.new(0, 0, 0, 20)
- scrollFrame.BackgroundTransparency = 1
- scrollFrame.CanvasSize = UDim2.new(0, 0, 0, (#buttonPositions + 1) * 35) -- Ajustado para incluir o botão "Stop Farm"
- scrollFrame.ScrollBarThickness = 10
- scrollFrame.ScrollingEnabled = true
- for _, button in ipairs(buttonList) do
- button.Parent = scrollFrame
- end
- iniciarArrasto(frame, topBorder)
- end
- -- Chama a função para criar o menu de Stands
- criarMenuStands()
Advertisement
Add Comment
Please, Sign In to add comment