
Keyless

local bindfunc = Instance.new("BindableFunction", workspace)
bindfunc.Name = "LogAudio"
bindfunc.OnInvoke = function(player,shouldplayaudio)
for i, v in pairs(game.Players:GetPlayers()) do
if v.Name:lower():sub(1,#player) == player:lower() then
for _, c in pairs(v.Character:GetDescendants()) do
if c:IsA("Sound") and c.Playing and c:FindFirstAncestorOfClass("Tool") then
print(v.Name.."'s Audio: "..c.SoundId:sub(33,#c.SoundId))
if shouldplayaudio then
local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char.Humanoid
hum:UnequipTools()
hum:EquipTool(plr.Backpack.BoomBox)
char.BoomBox.Remote:FireServer(tonumber(c.SoundId:sub(33,#c.SoundId)))
end
end
end
end
end
endNo comments yet for this script.