Auto collect keys and keycode (KEYLESS, OPEN-SOURCE)
Teleports to keys and grabs them. Finds keycode in workspace and displays it MUST credit me to use the code in your script. only saying cuz some chud took it and gave himself credits
loadstring(game:HttpGet("https://pasteblox.com/raw/xxxcxe7p9f"))()pbx pull xxxcxe7p9fraw link never changes · v1 live
local function runFullSetup()
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local root = character:WaitForChild("HumanoidRootPart")
local startPos = root.CFrame
print("--- [Full Setup: Keys + HUD] ---")
local currentCode = "Unknown"
local codeNote = game.Workspace:FindFirstChild("monochrome") and game.Workspace.monochrome:FindFirstChild("CodeNote")
if codeNote then
local digits = codeNote:FindFirstChild("Printed") and codeNote.Printed:FindFirstChild("Digits")
if digits then
currentCode = digits.Text
print("Current KeyCode identified: " .. currentCode)
end
end
local keysToFind = {"HiddenKey1", "HiddenKey2", "HiddenKey3", "HiddenKey4"}
for _, keyName in ipairs(keysToFind) do
local keyModel = game.Workspace:FindFirstChild("monochrome") and game.Workspace.monochrome:FindFirstChild(keyName)
if keyModel then
local keyPart = keyModel:FindFirstChild("Key")
if keyPart then
local prompt = keyPart:FindFirstChild("KeyPrompt", true)
if prompt and prompt:IsA("ProximityPrompt") then
root.CFrame = keyPart.CFrame
task.wait(0.3)
fireproximityprompt(prompt)
print("Collected: " .. keyName)
task.wait(0.3)
end
end
end
end
root.CFrame = startPos
if _G.KeyHUD then
_G.KeyHUD.CodeText:Remove()
_G.KeyHUD.StatusText:Remove()
end
local codeLabel = Drawing.new("Text")
codeLabel.Text = "KeyCode: " .. currentCode
codeLabel.Size = 24
codeLabel.Center = true
codeLabel.Outline = true
codeLabel.Color = Color3.fromRGB(255, 255, 255)
codeLabel.Visible = true
codeLabel.Position = Vector2.new(game.Workspace.CurrentCamera.ViewportSize.X / 2, 50)
local statusLabel = Drawing.new("Text")
statusLabel.Text = "keys grabbed"
statusLabel.Size = 18
statusLabel.Center = true
statusLabel.Outline = true
statusLabel.Color = Color3.fromRGB(0, 255, 0)
statusLabel.Visible = true
statusLabel.Position = Vector2.new(game.Workspace.CurrentCamera.ViewportSize.X / 2, 80)
_G.KeyHUD = {
CodeText = codeLabel,
StatusText = statusLabel
}
local connection
connection = game:GetService("RunService").RenderStepped:Connect(function()
if not _G.KeyHUD then
connection:Disconnect()
return
end
local viewportSize = game.Workspace.CurrentCamera.ViewportSize
codeLabel.Position = Vector2.new(viewportSize.X / 2, 50)
statusLabel.Position = Vector2.new(viewportSize.X / 2, 80)
end)
print("--- [Setup Complete] ---")
end
runFullSetup()