Back to Scripts
Mine a block
ScriptBlox
Universal
Free
Game: Universal Script 📌
199
Views
0
Likes
0
Dislikes
jxsjdkhc
offline
Features
Mine a block
Tags
Script Code
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 280, 0, 200)
frame.Position = UDim2.new(0, 10, 0, 10)
frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
frame.BorderSizePixel = 0
frame.Parent = screenGui
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = frame
-- Заголовок с кнопкой закрытия
local title = Instance.new("Frame")
title.Size = UDim2.new(1, 0, 0, 30)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
title.Parent = frame
local titleCorner = Instance.new("UICorner")
titleCorner.CornerRadius = UDim.new(0, 12)
titleCorner.Parent = title
local titleText = Instance.new("TextLabel")
titleText.Size = UDim2.new(1, -40, 1, 0)
titleText.Position = UDim2.new(0, 0, 0, 0)
titleText.BackgroundTransparency = 1
titleText.TextColor3 = Color3.fromRGB(255, 255, 255)
titleText.Text = "⛏️ АВТОПОКУПКА"
titleText.Font = Enum.Font.GothamBold
titleText.TextSize = 14
titleText.Parent = title
local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0, 30, 0, 30)
closeButton.Position = UDim2.new(1, -30, 0, 0)
closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.Text = "X"
closeButton.Font = Enum.Font.GothamBold
closeButton.TextSize = 14
closeButton.Parent = title
-- Кнопки управления
local startButton = Instance.new("TextButton")
startButton.Size = UDim2.new(0, 120, 0, 50)
startButton.Position = UDim2.new(0, 20, 0, 40)
startButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
startButton.TextColor3 = Color3.fromRGB(255, 255, 255)
startButton.Text = "▶️ СТАРТ"
startButton.Font = Enum.Font.GothamBold
startButton.TextSize = 16
startButton.Parent = frame
local startCorner = Instance.new("UICorner")
startCorner.CornerRadius = UDim.new(0, 8)
startCorner.Parent = startButton
local stopButton = Instance.new("TextButton")
stopButton.Size = UDim2.new(0, 120, 0, 50)
stopButton.Position = UDim2.new(0, 20, 0, 100)
stopButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
stopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
stopButton.Text = "⏹️ СТОП"
stopButton.Font = Enum.Font.GothamBold
stopButton.TextSize = 16
stopButton.Parent = frame
local stopCorner = Instance.new("UICorner")
stopCorner.CornerRadius = UDim.new(0, 8)
stopCorner.Parent = stopButton
-- Статус
local statusLabel = Instance.new("TextLabel")
statusLabel.Size = UDim2.new(1, -40, 0, 40)
statusLabel.Position = UDim2.new(0, 20, 0, 160)
statusLabel.BackgroundColor3 = Color3.fromRGB(100, 0, 0)
statusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
statusLabel.Text = "⏸️ Остановлено"
statusLabel.Font = Enum.Font.Gotham
statusLabel.TextSize = 12
statusLabel.Parent = frame
local statusCorner = Instance.new("UICorner")
statusCorner.CornerRadius = UDim.new(0, 6)
statusCorner.Parent = statusLabel
-- Логика автопокупки
local pickaxes = {
"Stone Pickaxe",
"Iron Pickaxe",
"Ruby Pickaxe",
"Crystal Pickaxe",
"Gold Pickaxe",
"Emerald Pickaxe",
"Diamond Pickaxe",
"Void Pickaxe"
}
local autoBuyEnabled = false
local networkEvent = game:GetService("ReplicatedStorage"):WaitForChild("Modules"):WaitForChild("Lib"):WaitForChild("Nodes"):WaitForChild("Network"):WaitForChild("NetworkEvents"):WaitForChild("_updateNode")
local function AutoBuyLoop()
while autoBuyEnabled do
for i, pickaxeName in ipairs(pickaxes) do
if not autoBuyEnabled then break end
local args = {
[1] = {
["Type"] = "Post"
},
[2] = "BUY_PICKAXESHOP",
[3] = pickaxeName
}
networkEvent:FireServer(unpack(args))
statusLabel.Text = "🛒 " .. pickaxeName
wait(0.05) -- ОЧЕНЬ БЫСТРО!
end
if autoBuyEnabled then
statusLabel.Text = "🔁 Перезапуск..."
wait(2) -- Быстрый перезапуск
end
end
end
-- Управление
startButton.MouseButton1Click:Connect(function()
if not autoBuyEnabled then
autoBuyEnabled = true
statusLabel.Text = "🟢 Работает"
statusLabel.BackgroundColor3 = Color3.fromRGB(0, 100, 0)
startButton.BackgroundColor3 = Color3.fromRGB(0, 100, 0)
AutoBuyLoop()
end
end)
stopButton.MouseButton1Click:Connect(function()
autoBuyEnabled = false
statusLabel.Text = "🔴 Остановлено"
statusLabel.BackgroundColor3 = Color3.fromRGB(100, 0, 0)
startButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
end)
closeButton.MouseButton1Click:Connect(function()
screenGui:Destroy()
end)
-- Перетаскивание
local dragging = false
local dragStart, startPos
title.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = frame.Position
end
end)
title.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch then
dragging = false
end
end)
title.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Touch and dragging then
local delta = input.Position - dragStart
frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
Comments (0)
Please login to comment
Login with Discord
Loading comments...