local lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/Turtle-Brand/Turtle-Lib/main/source.lua"))()
local win = lib:Window("Sound Panel")
local player = game.Players.LocalPlayer
-- Function to play a sound locally and fire to server
local function playCustomSound(soundId)
task.wait(0.4)
local volume = 1
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://" .. soundId
sound.Volume = volume
sound.Looped = false
sound.Parent = player:WaitForChild("PlayerGui")
sound:Play()
-- Fire to server
local args = {
[1] = workspace,
[2] = soundId,
[3] = volume
}
game:GetService("ReplicatedStorage").RE:FindFirstChild("1Gu1nSound1s"):FireServer(unpack(args))
end
-- Add multiple buttons
win:Button("Play Sound 1", function()
playCustomSound(18406731725)
end)
win:Button("Play Sound 2", function()
playCustomSound(8045389581)
end)
win:Button("Play Sound 3", function()
playCustomSound(118626151223066)
end)
win:Button("Play Sound 4", function()
playCustomSound(5171091486)
end)
Comments
Not working gng
If it's not working, leave a comment