local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local TextBox = Instance.new("TextBox")
local PlayButton = Instance.new("TextButton")
local StopButton = Instance.new("TextButton")

ScreenGui.Parent = game.CoreGui

MainFrame.Name = "AudioTester"
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MainFrame.Position = UDim2.new(0.5, -100, 0.5, -50)
MainFrame.Size = UDim2.new(0, 200, 0, 100)
MainFrame.Active = true
MainFrame.Draggable = true

TextBox.Parent = MainFrame
TextBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
TextBox.Position = UDim2.new(0.1, 0, 0.1, 0)
TextBox.Size = UDim2.new(0.8, 0, 0.3, 0)
TextBox.Font = Enum.Font.GothamBold
TextBox.PlaceholderText = "Enter Sound ID"
TextBox.Text = ""
TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
TextBox.TextSize = 14

PlayButton.Parent = MainFrame
PlayButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
PlayButton.Position = UDim2.new(0.1, 0, 0.5, 0)
PlayButton.Size = UDim2.new(0.35, 0, 0.3, 0)
PlayButton.Font = Enum.Font.GothamBold
PlayButton.Text = "Play"
PlayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
PlayButton.TextSize = 14

StopButton.Parent = MainFrame
StopButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
StopButton.Position = UDim2.new(0.55, 0, 0.5, 0)
StopButton.Size = UDim2.new(0.35, 0, 0.3, 0)
StopButton.Font = Enum.Font.GothamBold
StopButton.Text = "Stop"
StopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
StopButton.TextSize = 14

local sound = Instance.new("Sound")
sound.Parent = game:GetService("SoundService")

PlayButton.MouseButton1Click:Connect(function()
    sound.SoundId = "rbxassetid://" .. TextBox.Text
    sound:Play()
end)

StopButton.MouseButton1Click:Connect(function()
    sound:Stop()
end)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: