Most op scipt ever print helo world
Key RequiredUniversal

Most op scipt ever print helo world

Universal Scriptoatssioatssi 443 views 119 executesUpdated Dec 9, 2025
1.3/ 5(4 votes)
1325% Positive
Lua Script•59 lines (1788 chars)
local program = [[
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.]]

local tape = {}
local tapePointer = 1
local output = ""

for i = 1, 30000 do
    tape[i] = 0
end

local function interpretBF(code)
    local codePointer = 1
    local loopStack = {}

    while codePointer <= #code do
        local instruction = string.sub(code, codePointer, codePointer)

        if instruction == ">" then
            tapePointer = tapePointer + 1
        elseif instruction == "<" then
            tapePointer = tapePointer - 1
        elseif instruction == "+" then
            tape[tapePointer] = tape[tapePointer] + 1
        elseif instruction == "-" then
            tape[tapePointer] = tape[tapePointer] - 1
        elseif instruction == "." then
            output = output .. string.char(tape[tapePointer])
        elseif instruction == "[" then
            if tape[tapePointer] == 0 then
                local count = 1

                while count > 0 do
                    codePointer = codePointer + 1
                    local nextInstruction = string.sub(code, codePointer, codePointer)

                    if nextInstruction == "[" then
                        count = count + 1
                    elseif nextInstruction == "]" then
                        count = count - 1
                    end
                end
            else
                table.insert(loopStack, codePointer)
            end
        elseif instruction == "]" then
            if tape[tapePointer] ~= 0 then
                codePointer = loopStack[#loopStack]
            else
                table.remove(loopStack, #loopStack)
            end
        end

        codePointer = codePointer + 1
    end
end

interpretBF(program)
print(output)

Features & Information

OPPPP

Community Comments (4)

oatssioatssiDec 9, 2025

brainfuh

hi_hi_hihi_hi_hiDec 9, 2025

peak

ludicious_clawludicious_clawDec 9, 2025

hello world in brainfuh thats what we needed world is saved

Replying to @ludicious_claw
oatssioatssiDec 9, 2025

@imnotqqka Exactly

More Scripts for Universal Scripts