Universal Script 📌
2.9k Views
23 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

Updates

  1. Script edited: Create script

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
4.1M
558.4k
Bumped 14 minutes ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.4k
28.8k
Bumped 1 hour ago
Key System
Script hub
14.0k
28.4k
Bumped 2 hours ago
Universal Script 📌
339.0k
74.9k
Bumped 2 hours ago
Script hub
462.0k
989.7k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 52 Supported Games + OP!

Universal Script 📌
70
6
Approved 3 hours ago