Universal Script 📌
453 Views
134 Executions

Most op scipt ever print helo world

Universal Script 📌
oatssi
oatssiPublished 10
10 months 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_claw10 months ago

hello world in brainfuh thats what we needed world is saved

1
oatssi's profile picture
oatssiUploader10 months ago

@imnotqqka Exactly

1
hi_hi_hi's profile picture
hi_hi_hiKeyless Creator
Keyless Script Creator Badge
Keyless Script Creator
#13 this week10 months ago

peak

1
oatssi's profile picture
oatssiUploader10 months ago

brainfuh

1

More universal scripts

See all
Script hub
29.8k
92.0k
Bumped 3 hours ago
Key System

Script hub

#2 this week

Verified script badgeArcane Hub | 125+ Games & 4000+ Features

Script hub
138.3k
417.6k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub | Easy Key System

Script hub
3.9M
964.7k
Bumped 4 hours ago

Script hub

Hall of Fame #3

KeylessVerified script badge[KEYLESS] Moondiety Script | 20+ supported Games

Universal Script 📌
819
150
Bumped 5 hours ago
Key System
Script hub
243
9
Approved 5 hours ago
Key System
Paid
Script hub
3.0M
14.6M
Bumped 7 hours ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM - MM2, FTF, Forsaken, etc.

Script hub
721
135
Approved 7 hours ago
Key System