Rdom music player
Key Required

Rdom music player

An Infinite Road TripOuterTreesOuterTrees 46.9K views 170 executesUpdated Sep 2, 2023
5.0/ 5(3 votes)
30100% Positive
Lua Script•97 lines (3485 chars)
if game.PlaceId == 5032892136 then
    local lp = game.Players.LocalPlayer

    lp.Character:WaitForChild("antiSpeed/JumpHack"):Destroy()
    lp.PlayerGui.remoteEvents.fastStaticEffectScript:Destroy()

    lp.CharacterAdded:Connect(function(character)
        character:WaitForChild("antiSpeed/JumpHack"):Destroy()
        lp.PlayerGui.remoteEvents.fastStaticEffectScript:Destroy()
    end)

    local hs = game:GetService("HttpService")
    local soundList = hs:JSONDecode('['..readfile("sounds.txt")..']')
    local radioSound = game.Workspace.speakers.radio.sound
    local newSoundId = ''
    local AddSong = game.ReplicatedStorage.submitSong
    local sg = game.StarterGui
    local usedIdxs = {}

    local function isElementInList(list, element)
        for _, v in ipairs(list) do
            if v == element then
                return true
            end
        end
        return false
    end

    local function main()
        newSoundId = radioSound.SoundId:sub(14)
        if radioSound.IsLoaded then
            if not isElementInList(soundList, tonumber(newSoundId)) then
                print("New music: "..newSoundId)
                sg:SetCore("SendNotification",{
                    Title = "New music",
                    Text = "New music: "..newSoundId,
                    Icon = "rbxassetid://15694255693"
                })
                table.insert(soundList, tonumber(newSoundId))
                writefile("sounds.txt", hs:JSONEncode(soundList):sub(2, -2))
            end
        end
        if not radioSound.IsPlaying then
            soundIndex = math.random(1, #soundList)
            while isElementInList(usedIdxs, soundIndex) do
                soundIndex = math.random(1, #soundList)
                print('Retrying...')
            end
            sound = soundList[soundIndex]
            result = AddSong:InvokeServer(sound)
            if #usedIdxs >= #soundList - 10 then
                usedIdxs = {}
            end
            print("Playing: "..sound)
            if result == 'PASSED' then
                table.insert(usedIdxs, soundIndex)
            elseif result == 'INVALID' or result == 'TOO LONG' then
                print("INVALID music: "..newSoundId)
                sg:SetCore("SendNotification",{
                    Title = "INVALID",
                    Text = "INVALID music: "..sound,
                    Icon = "rbxassetid://2592670412"
                })
                table.remove(soundList, soundIndex)
                writefile("sounds.txt", hs:JSONEncode(soundList):sub(2, -2))
            end
            print("Response from the server: "..result)
        end
        wait(1)
    end

    local needChange = false
    for _, v in pairs(workspace.soundTest:GetChildren()) do
        if v.IsLoaded then
            newSoundId = v.SoundId:sub(14)
            if not isElementInList(soundList, tonumber(newSoundId)) then
                print("New music: "..newSoundId)
                sg:SetCore("SendNotification",{
                    Title = "New music",
                    Text = "New music: "..newSoundId,
                    Icon = "rbxassetid://15694255693"
                })
                table.insert(soundList, tonumber(newSoundId))
                needChange = true
            end
        end
    end
    newSoundId = ''
    if needChange then
        writefile("sounds.txt", hs:JSONEncode(soundList):sub(2, -2))
    end

    while true do
        pcall(main)
        --main()
    end
end

Features & Information

Play random music every 3 minutes (U can change it in code LOL) PLS KEEP THIS A SECRET FROM THE DEVELOPERS, ADMINS AND MODERATORS OF THIS GAME!!! - ПОЖАЛУЙСТА ХРАНИТЕ ЭТО В СЕКРЕТЕ ОТ РАЗРАБОТЧИКОВ, АДМИНОВ И МОДЕРАТОРОВ ЭТОЙ ИГРЫ!!! 1. Download this file: https://drive.google.com/file/d/13xY0JGdgLf4f9ou8fJefViLdgEHZLx7R/view?usp=sharing 2. Put it in the workspace folder Update 12.06.2024 Optimized Deleted useless things Added light compression Added anti-cheat bypass Update 14.06.2024 Added startup audio collector. Because the game logs audio IDs, you will have more audio IDs! Update 16.06.2024 Fixed bug with bad string cut in newSoundId. So no more invalid audio IDs will be saved. Update 13.07.2024: Updated to new game update
#random#music#player#ids#not universal

Community Comments (4)

EDADEDADSep 2, 2023(edited)

yea can't configure a pc file cool audios I can only hear

rangerrxrangerrxSep 3, 2023(edited)

so what does it do?

OuterTreesOuterTreesSep 3, 2023(edited)

No, everyone can hear audios. Cuz it using radio or game:GetService("ReplicatedStorage").submitSong for replicated playing.

hiptodude2hiptodude2Sep 8, 2023(edited)

guys if u want to change the music to whatever you actually want u need to open the file in a notepad and change an id or add an extra id

More Scripts for An Infinite Road Trip