Universal Script 📌
659 Views
36 Executions

ASCII api script api was not by me

Universal Script 📌
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

You can look up the fonts but there's alot of them

View Raw
-- * Ascii api text generator
-- * syn.request will be used, but it'll work for this script since we're using our own syn
-- * thanks to thelicato for the api; its just https://github.com/thelicato/asciified/tree/main

do local parms = {owner = "ProphecySkondo", repo = "Misc", branch = "main"}  local function Import(file)
return loadstring(game:HttpGetAsync(("https://raw.githubusercontent.com/%s/%s/%s/%s.lua"):format(parms.owner, parms.repo, parms.branch, file)), file .. ".lua")()  end  if not syn then  Import("Syn/main") getgenv().exploiter = true else  getgenv().exploiter = true  end  end

local api = {
    ["starter"] = "https://asciified.thelicato.io/api/v2/ascii?text=", -- the text
    ["mid"] = "&font=", -- the font
}

local function ascii(text: string, font: string)
    -- i could've just used string.format really
    assert(type(text) == 'string', "Expected string got " .. text)
    assert(type(font) == 'string', "Expected string got" .. font)

    local url = api["starter"] .. tostring(text) .. api["mid"] .. tostring(font)
    
    local asciiRequest, asciiResult = pcall(function()
        return syn.request({
            Url = url,
            Method = "GET"
        })
    end)

    if not asciiRequest then
        if asciiResult == 0 then
            asciiResult = "api error"
        end
        return
    end

    if asciiRequest and asciiResult.Body then
        return asciiResult.Body
    else
        return "empty"
    end
end



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
525.9k
336.7k
Bumped 39 minutes ago
Script hub
2.4k
2.2k
Bumped 2 hours ago
Key System
Universal Script 📌
152
15
Approved 2 hours ago
Script hub
2.8M
661.5k
Bumped 3 hours ago
Key System

Script hub

#4 today

Verified script badgeFlow Hub | 35 Games | Updated

Universal Script 📌
182
20
Approved 4 hours ago