Universal Script 📌
469 Views
224 Executions

Most op scipt ever print helo world

Universal Script 📌
oatssi
oatssiPublished 10
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

OPPPP

View Raw
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


Comments

4
Log in to join the conversation. Login
ludicious_claw's profile picture
ludicious_claw1 year ago

hello world in brainfuh thats what we needed world is saved

2
oatssi's profile picture
oatssiUploader1 year ago

@imnotqqka Exactly

1
1954's profile picture
1954OG
OG
OG: invite only, given by Thunder Mods
Keyless Script Creator Badge
Keyless Script Creator
Verified Badge
Verified User
#22 this week1 year ago

peak

2
oatssi's profile picture
oatssiUploader1 year ago

brainfuh

2

More universal scripts

See all
Script hub
13
3
Approved 19 minutes ago
Script hub
198
1.0k
Bumped 3 hours ago

Script hub

Lunyx Hub

Script hub
120.8k
221.8k
Bumped 4 hours ago
Key System
Script hub
10.7k
202.7k
Bumped 4 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1