Universal Script 📌
485 Views
368 Executions

Sounds httpGet

Universal Script 📌
RealPnsdg
RealPnsdg100K executions
10 months 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

Download and Play sound from url

View Raw

-- Services
local SoundService = game:GetService("SoundService")

-- Download and play audio
local audioUrl = "http://tmpfiles.org/dl/19155954/mlessio_2026-01-09-20-06-29_1767963989625-mc.mp3"
local audioFilename = "audio.mp3"

local audioSuccess, audioResponse = pcall(function()
    local request = http_request or (syn and syn.request) or request
    if request then
        local response = request({
            Url = audioUrl,
            Method = "GET",
        })
        return response.Body
    end
    return nil
end)

if audioSuccess and audioResponse then
    writefile(audioFilename, audioResponse)
    local sound = Instance.new("Sound")
    sound.SoundId = getcustomasset(audioFilename)
    sound.Volume = 1
    sound.Parent = SoundService
    sound:Play()
end


Comments

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

More universal scripts

See all
Universal Script 📌
1.0k
4.6k
Bumped 2 hours ago
Script hub
75.0k
250.8k
Bumped 2 hours ago
Key System
Script hub
301.0k
1.0M
Bumped 3 hours ago
Key System

Script hub

#18 this month

Verified script badgeAxon Hub | 100+ Games & 3900+ Features

Script hub
17.5k
89.8k
Bumped 7 hours ago
Universal Script 📌
36.9k
1.1M
Bumped 7 hours ago