I don’t think it’s very likely for some one to be inserting audio into your game if you’re not using a service to control audio. Like a radio system or admin, that kind of thing.
So, if you were talking about people just inserting audios through exploits, there is a way to do this.
game.Workspace.DescendantAdded:Connect(function(decendant)
if descendant:IsA("Audio") then
descendant:Destroy()
end
end)
This should prevent all audios from being exploited into Workspace.
There is a boom box gamepass where you can play audios
Sorry, I didn’t know this beforehand. However, this can stop exploiters, but probably players with the boombox if you scripted it like that. But best off not to worry about it and if someone does that, players will report them.
I think it was the audio itself, due to the fact that many people were saying “This was mega leaked” As in a group or individual owned the audio and might of used it for previous occasions. Something aswell was “Best way to troll servers” Implying that it might of worked on other games but do not quote me on that.
I tried doing a temp fix but I prob put it in wrong
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local Remote = Tool:WaitForChild("Remote")
local Sound = Handle:WaitForChild("Sound")
function onUnequip()
Sound:Stop()
end
function onActivate()
Remote:FireClient(getPlayer(), "ChooseSong")
end
function getPlayer()
return game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
end
local f = false
function playSong(id)
print(id,script.Parent.Parent.Name)
if id == "4941911028" then
game.Players:GetPlayerFromCharacter(script.Parent.Parent):Kick("Dont do it")
end
id = id or ""
f = false
Sound = script.Parent.Handle.Sound
Sound:Stop()
wait()
--Sound.Parent = Handle
Sound.Volume = 0.5
Sound.Looped = true
Sound.PlayOnRemove = false
Sound.SoundId = "http://www.roblox.com/asset/?id="..id
Sound:Play()
f = true
end
function onRemote(player, func, ...)
if player ~= getPlayer() then return end
if func == "Activate" then
onActivate(...)
end
if func == "PlaySong" then
playSong(...)
end
end
Remote.OnServerEvent:connect(onRemote)
Tool.Unequipped:connect(onUnequip)