DOLTA
Key RequiredUniversal

DOLTA

Universal ScriptAceii_Aceii_ 1.5K views 6 executesUpdated Jun 9, 2025
Unrated
00
Lua Script•62 lines (2174 chars)
-- Initialize getgenv variables for external control
getgenv().playSong = "The Big Black"
getgenv().pauseMusic = false
getgenv().resumeMusic = false
getgenv().stopMusic = false
getgenv().danceEmote = "dance" -- options: "dance" or "cheer"

-- List of songs available to play
getgenv().availableSongs = {
    "The Big Black",
    "Love For You",
    "Bye Bye Baby Blue"
}

-- Load the music visualizer script
loadstring(game:HttpGet("https://raw.githubusercontent.com/SmilerVinix/GetGenvMusic/refs/heads/main/GetMusicDonix"))()

local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local Chat = game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest")

-- Function to send notification
local function sendNotification(title, text)
    StarterGui:SetCore("SendNotification", {
        Title = title,
        Text = text,
        Duration = 5,
    })
end

-- Handle playing music and emote
spawn(function()
    local currentSong = nil
    while true do
        wait(0.3)
        if getgenv().playSong and getgenv().playSong ~= currentSong then
            if table.find(getgenv().availableSongs, getgenv().playSong) then
                -- Stop old music before playing new one
                if currentSong then
                    getgenv().stopMusic = true
                    wait(0.1)
                end

                currentSong = getgenv().playSong
                -- Tell the visualizer to play the song
                getgenv().playSong = currentSong

                -- Notify player what song is playing + credit
                sendNotification("🎶 Now Playing", currentSong)
                sendNotification("💡 Info", "Dolta on Discord made this")

                -- Make player do the dance emote
                local emoteCmd = "/e " .. (getgenv().danceEmote == "cheer" and "cheer" or "dance")
                Chat:FireServer(emoteCmd, "All")
            else
                warn("Song not found in list: ".. tostring(getgenv().playSong))
                getgenv().playSong = nil
            end
        end
    end
end)

Features & Information

test

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts