Universal Script 📌
2.9k Views
11 Executions

Sine Wave Repost

Universal Script 📌
mxsynry
mxsynry10K executions
2 years 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

pure nostalgia

View Raw
local RunService = game:FindService("RunService")

local t = 0
local amount = 0
local characters = {"*", "-", "~", ".", "o", "+", "x", "#", "%", "@", "&", "$", "^", "=", "!"}


RunService.RenderStepped:Connect(function()
    local screen = {}
    for i = 1, 1760 do
        screen[i] = " "
    end

    local amplitude = 12
    local frequency = 0.06

    for x = 0, 80*(amount >= 1 and amount or 1) do
        local y = math.floor(12 + amplitude * math.sin((x + t) * frequency))
        local char = characters[(x % #characters) + 1]

        for offset = -2, 2 do
            local index = x + (y + offset) * 80
            if index > 0 and index <= #screen then
                screen[index] = char
            end
        end
    end

    local output = {}
    for index = 1, #screen do
        table.insert(output, screen[index])
        if index % 80 == 0 then
            table.insert(output, "\n")
        end
    end

    print("\n" .. table.concat(output))
    rconsoleprint("\n" .. table.concat(output))

    t += 1


Comments

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

Tags

More universal scripts

See all
Script hub
565
48
Bumped 2 hours ago
Script hub
171.0k
1.4M
Bumped 2 hours ago
Key System
Script hub
16.5k
3.2k
Bumped 4 hours ago
Key System
Paid
Script hub
17.1k
87.0k
Bumped 4 hours ago
Script hub
509
62
Approved 6 hours ago