
Keyless

--[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoCollectGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui
-- Variables de statistiques
local totalMoney = 0
local chestsCollected = 0
local startTime = tick()
local isRunning = false
local originalPosition = nil
local button4Timer = 0
-- Bouton de toggle (toujours visible)
local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(0, 180, 0, 50)
toggleButton.Position = UDim2.new(0.5, -90, 0, 10)
toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 60)
toggleButton.BorderSizePixel = 0
toggleButton.Font = Enum.Font.GothamBold
toggleButton.Text = "📋 AUTO COLLECT MENU"
toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleButton.TextSize = 16
toggleButton.Parent = screenGui
local toggleCorner = Instance.new("UICorner")
toggleCorner.CornerRadius = UDim.new(0, 10)
toggleCorner.Parent = toggleButton
-- Frame principale (menu central)
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 400, 0, 500)
mainFrame.Position = UDim2.new(0.5, -200, 0.5, -250)
mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
mainFrame.BorderSizePixel = 0
mainFrame.Visible = false
mainFrame.Parent = screenGui
local mainCorner = Instance.new("UICorner")
mainCorner.CornerRadius = UDim.new(0, 15)
mainCorner.Parent = mainFrame
-- Ombre
local shadow = Instance.new("ImageLabel")
shadow.Size = UDim2.new(1, 30, 1, 30)
shadow.Position = UDim2.new(0, -15, 0, -15)
shadow.BackgroundTransparency = 1
shadow.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
shadow.ImageTransparency = 0.7
shadow.ScaleType = Enum.ScaleType.Slice
shadow.SliceCenter = Rect.new(10, 10, 10, 10)
shadow.ZIndex = 0
shadow.Parent = mainFrame
-- Titre principal
local mainTitle = Instance.new("TextLabel")
mainTitle.Size = UDim2.new(1, -50, 0, 50)
mainTitle.Position = UDim2.new(0, 0, 0, 0)
mainTitle.BackgroundColor3 = Color3.fromRGB(35, 35, 50)
mainTitle.BorderSizePixel = 0
mainTitle.Font = Enum.Font.GothamBold
mainTitle.Text = "AUTO COLLECT PRO"
mainTitle.TextColor3 = Color3.fromRGB(100, 200, 255)
mainTitle.TextSize = 22
mainTitle.Parent = mainFrame
local mainTitleCorner = Instance.new("UICorner")
mainTitleCorner.CornerRadius = UDim.new(0, 15)
mainTitleCorner.Parent = mainTitle
-- Bouton de fermeture (croix)
local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0, 50, 0, 50)
closeButton.Position = UDim2.new(1, -50, 0, 0)
closeButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
closeButton.BorderSizePixel = 0
closeButton.Font = Enum.Font.GothamBold
closeButton.Text = "✕"
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.TextSize = 24
closeButton.Parent = mainFrame
local closeCorner = Instance.new("UICorner")
closeCorner.CornerRadius = UDim.new(0, 15)
closeCorner.Parent = closeButton
-- Frame des statistiques
local statsFrame = Instance.new("Frame")
statsFrame.Size = UDim2.new(0.9, 0, 0, 150)
statsFrame.Position = UDim2.new(0.05, 0, 0, 65)
statsFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 45)
statsFrame.BorderSizePixel = 0
statsFrame.Parent = mainFrame
local statsCorner = Instance.new("UICorner")
statsCorner.CornerRadius = UDim.new(0, 12)
statsCorner.Parent = statsFrame
local statsTitle = Instance.new("TextLabel")
statsTitle.Size = UDim2.new(1, 0, 0, 30)
statsTitle.BackgroundTransparency = 1
statsTitle.Font = Enum.Font.GothamBold
statsTitle.Text = "📊 STATISTIQUES"
statsTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
statsTitle.TextSize = 16
statsTitle.Parent = statsFrame
-- Argent total
local moneyLabel = Instance.new("TextLabel")
moneyLabel.Size = UDim2.new(1, -20, 0, 30)
moneyLabel.Position = UDim2.new(0, 10, 0, 35)
moneyLabel.BackgroundTransparency = 1
moneyLabel.Font = Enum.Font.Gotham
moneyLabel.Text = "💰 Argent total: $0"
moneyLabel.TextColor3 = Color3.fromRGB(100, 255, 100)
moneyLabel.TextSize = 18
moneyLabel.TextXAlignment = Enum.TextXAlignment.Left
moneyLabel.Parent = statsFrame
-- Coffres collectés
local chestsLabel = Instance.new("TextLabel")
chestsLabel.Size = UDim2.new(1, -20, 0, 30)
chestsLabel.Position = UDim2.new(0, 10, 0, 70)
chestsLabel.BackgroundTransparency = 1
chestsLabel.Font = Enum.Font.Gotham
chestsLabel.Text = "🔘Button: 0"
chestsLabel.TextColor3 = Color3.fromRGB(255, 200, 100)
chestsLabel.TextSize = 18
chestsLabel.TextXAlignment = Enum.TextXAlignment.Left
chestsLabel.Parent = statsFrame
-- Temps écoulé
local timeLabel = Instance.new("TextLabel")
timeLabel.Size = UDim2.new(1, -20, 0, 30)
timeLabel.Position = UDim2.new(0, 10, 0, 105)
timeLabel.BackgroundTransparency = 1
timeLabel.Font = Enum.Font.Gotham
timeLabel.Text = "⏱️ Temps: 00:00:00"
timeLabel.TextColor3 = Color3.fromRGB(150, 150, 255)
timeLabel.TextSize = 18
timeLabel.TextXAlignment = Enum.TextXAlignment.Left
timeLabel.Parent = statsFrame
-- Frame des boutons de contrôle
local controlFrame = Instance.new("Frame")
controlFrame.Size = UDim2.new(0.9, 0, 0, 110)
controlFrame.Position = UDim2.new(0.05, 0, 0, 230)
controlFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 45)
controlFrame.BorderSizePixel = 0
controlFrame.Parent = mainFrame
local controlCorner = Instance.new("UICorner")
controlCorner.CornerRadius = UDim.new(0, 12)
controlCorner.Parent = controlFrame
local startButton = Instance.new("TextButton")
startButton.Size = UDim2.new(0.9, 0, 0, 45)
startButton.Position = UDim2.new(0.05, 0, 0, 10)
startButton.BackgroundColor3 = Color3.fromRGB(0, 200, 100)
startButton.BorderSizePixel = 0
startButton.Font = Enum.Font.GothamBold
startButton.Text = "▶ DÉMARRER"
startButton.TextColor3 = Color3.fromRGB(255, 255, 255)
startButton.TextSize = 20
startButton.Parent = controlFrame
local startCorner = Instance.new("UICorner")
startCorner.CornerRadius = UDim.new(0, 10)
startCorner.Parent = startButton
local stopButton = Instance.new("TextButton")
stopButton.Size = UDim2.new(0.9, 0, 0, 45)
stopButton.Position = UDim2.new(0.05, 0, 0, 60)
stopButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
stopButton.BorderSizePixel = 0
stopButton.Font = Enum.Font.GothamBold
stopButton.Text = "⏹ ARRÊTER"
stopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
stopButton.TextSize = 20
stopButton.Parent = controlFrame
local stopCorner = Instance.new("UICorner")
stopCorner.CornerRadius = UDim.new(0, 10)
stopCorner.Parent = stopButton
-- Frame des boutons status
local statusFrame = Instance.new("ScrollingFrame")
statusFrame.Size = UDim2.new(0.9, 0, 0, 135)
statusFrame.Position = UDim2.new(0.05, 0, 0, 355)
statusFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 45)
statusFrame.BorderSizePixel = 0
statusFrame.ScrollBarThickness = 6
statusFrame.CanvasSize = UDim2.new(0, 0, 0, 170)
statusFrame.Parent = mainFrame
local statusCorner = Instance.new("UICorner")
statusCorner.CornerRadius = UDim.new(0, 12)
statusCorner.Parent = statusFrame
local statusTitle = Instance.new("TextLabel")
statusTitle.Size = UDim2.new(1, 0, 0, 25)
statusTitle.BackgroundTransparency = 1
statusTitle.Font = Enum.Font.GothamBold
statusTitle.Text = "🔘 STATUT DES BOUTONS"
statusTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
statusTitle.TextSize = 14
statusTitle.Parent = statusFrame
-- Crédit éditeur
local creditLabel = Instance.new("TextLabel")
creditLabel.Size = UDim2.new(1, 0, 0, 20)
creditLabel.Position = UDim2.new(0, 0, 1, -25)
creditLabel.BackgroundTransparency = 1
creditLabel.Font = Enum.Font.GothamBold
creditLabel.Text = "Éditeur: jecheatpaspromisje"
creditLabel.TextColor3 = Color3.fromRGB(100, 200, 255)
creditLabel.TextSize = 12
creditLabel.Parent = mainFrame
local buttonLabels = {}
for i = 1, 7 do
local label = Instance.new("TextLabel")
label.Size = UDim2.new(1, -20, 0, 20)
label.Position = UDim2.new(0, 10, 0, 25 + (i - 1) * 21)
label.BackgroundTransparency = 1
label.Font = Enum.Font.Gotham
label.Text = "Button" .. i .. ": En attente..."
label.TextColor3 = Color3.fromRGB(200, 200, 200)
label.TextSize = 13
label.TextXAlignment = Enum.TextXAlignment.Left
label.Parent = statusFrame
buttonLabels[i] = label
end
-- Fonction pour formater le temps
local function formatTime(seconds)
local hours = math.floor(seconds / 3600)
local minutes = math.floor((seconds % 3600) / 60)
local secs = math.floor(seconds % 60)
return string.format("%02d:%02d:%02d", hours, minutes, secs)
end
-- Mise à jour des statistiques
task.spawn(function()
while true do
if isRunning then
local elapsed = tick() - startTime
timeLabel.Text = "⏱️ Temps: " .. formatTime(elapsed)
end
task.wait(1)
end
end)
local function getCharacter()
return player.Character or player.CharacterAdded:Wait()
end
local function startAutoCollect()
if isRunning then return end
isRunning = true
startTime = tick()
startButton.BackgroundColor3 = Color3.fromRGB(0, 255, 150)
startButton.Text = "⏳ EN COURS..."
local char = getCharacter()
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp then
originalPosition = hrp.CFrame
end
task.spawn(function()
while isRunning do
local char = getCharacter()
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp then
local buttonsMoney = workspace:FindFirstChild("ButtonsMoney")
if buttonsMoney then
button4Timer = button4Timer + 0.5
if button4Timer >= 4 then
buttonLabels[4].TextColor3 = Color3.fromRGB(100, 100, 255)
buttonLabels[4].Text = "Button4: 🚀 Téléportation..."
hrp.CFrame = CFrame.new(0, 2058.35009765625, -102.5999984741211)
chestsCollected = chestsCollected + 1
chestsLabel.Text = "🔘Button: " .. chestsCollected
task.wait(0.3)
button4Timer = 0
end
for i = 1, 7 do
if not isRunning then break end
if i == 4 then
if button4Timer < 4 then
buttonLabels[4].Text = "Button4: ⏳ " .. math.floor(4 - button4Timer) .. "s"
buttonLabels[4].TextColor3 = Color3.fromRGB(150, 150, 150)
end
continue
end
local buttonName = "Button" .. i
local button = buttonsMoney:FindFirstChild(buttonName)
if button then
local main = button:FindFirstChild("Main")
if main then
for _, child in ipairs(main:GetDescendants()) do
if child.Name == "TimeMoney" and child:IsA("TextLabel") then
local timeText = child.Text
local hasPlus = string.sub(timeText, 1, 1) == "+"
if hasPlus then
buttonLabels[i].Text = "Button" .. i .. ": ✅ " .. timeText
buttonLabels[i].TextColor3 = Color3.fromRGB(0, 255, 100)
hrp.CFrame = main.CFrame
-- Extraire le montant d'argent
local amount = tonumber(string.match(timeText, "%d+"))
if amount then
totalMoney = totalMoney + amount
moneyLabel.Text = "💰 Argent total: $" .. totalMoney
end
chestsCollected = chestsCollected + 1
chestsLabel.Text = "📦 Coffres: " .. chestsCollected
task.wait(0.3)
else
buttonLabels[i].Text = "Button" .. i .. ": ⏰ " .. timeText
buttonLabels[i].TextColor3 = Color3.fromRGB(255, 150, 0)
end
break
end
end
end
end
end
end
end
task.wait(0.5)
end
end)
end
local function stopAutoCollect()
isRunning = false
button4Timer = 0
if originalPosition then
local char = getCharacter()
local hrp = char:FindFirstChild("HumanoidRootPart")
if hrp then
hrp.CFrame = originalPosition
end
end
startButton.BackgroundColor3 = Color3.fromRGB(0, 200, 100)
startButton.Text = "▶ DÉMARRER"
stopButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
task.wait(0.2)
stopButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
end
-- Toggle du menu
toggleButton.MouseButton1Click:Connect(function()
mainFrame.Visible = true
toggleButton.Visible = false
end)
-- Fermeture du menu avec la croix
closeButton.MouseButton1Click:Connect(function()
mainFrame.Visible = false
toggleButton.Visible = true
end)
-- Effets hover
toggleButton.MouseEnter:Connect(function()
toggleButton.BackgroundColor3 = Color3.fromRGB(60, 60, 90)
end)
toggleButton.MouseLeave:Connect(function()
toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 60)
end)
closeButton.MouseEnter:Connect(function()
closeButton.BackgroundColor3 = Color3.fromRGB(255, 70, 70)
end)
closeButton.MouseLeave:Connect(function()
closeButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
end)
startButton.MouseEnter:Connect(function()
if not isRunning then
startButton.BackgroundColor3 = Color3.fromRGB(0, 230, 120)
end
end)
startButton.MouseLeave:Connect(function()
if not isRunning then
startButton.BackgroundColor3 = Color3.fromRGB(0, 200, 100)
end
end)
stopButton.MouseEnter:Connect(function()
stopButton.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
end)
stopButton.MouseLeave:Connect(function()
stopButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
end)
startButton.MouseButton1Click:Connect(startAutoCollect)
stopButton.MouseButton1Click:Connect(stopAutoCollect)No comments yet for this script.