Universal Script 📌
489 Views
398 Executions

Sounds httpGet

Universal Script 📌
RealPnsdg
RealPnsdg100K executions
11 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 📌
138
522
Bumped 21 minutes ago
Universal Script 📌
1.5k
30.2k
Bumped 23 minutes ago
Script hub
4.1M
558.5k
Bumped 46 minutes ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.4k
28.8k
Bumped 2 hours ago
Key System
Script hub
14.0k
28.4k
Bumped 3 hours ago
Universal Script 📌
339.0k
75.0k
Bumped 3 hours ago
Script hub
462.0k
990.4k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 52 Supported Games + OP!