Advertisement
Vzurxy

Untitled

Jul 7th, 2019
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.97 KB | None | 0 0
  1. Plugin = {
  2.     ["PluginName"] = "SoundHack",
  3.     ["PluginDescription"] = "Allows you to experiment with sounds in Roblox",
  4.     ["Commands"] = {
  5.         ["soundcheck"] = {
  6.             ["ListName"] = "soundcheck / scheck",
  7.             ["Description"] = "Checks if game sound can be exploitable.",
  8.             ["Aliases"] = {'scheck'},
  9.             ["Function"] = function(args, speaker)
  10.                 if game:GetService("SoundService").RespectFilteringEnabled == false then
  11.                     notify("SoundHack", "Sounds can be exploited.")
  12.                 else
  13.                     notify("SoundHack", "Sounds can't be exploited.")
  14.                 end
  15.             end,
  16.         },
  17.         ["soundplay"] = {
  18.             ["ListName"] = "soundplay / splay",
  19.             ["Description"] = "Plays all sound in game.",
  20.             ["Aliases"] = {'splay'},
  21.             ["Function"] = function(args, speaker)
  22.                 for i,v in pairs(game:GetDescendants()) do
  23.                     if v:IsA("Sound") then
  24.                         v:Play()
  25.                     end
  26.                 end
  27.                 notify("SoundHack", "Finished playing sounds.")
  28.             end,
  29.         },
  30.         ["soundstop"] = {
  31.             ["ListName"] = "soundstop / sstop",
  32.             ["Description"] = "Plays all sound in game.",
  33.             ["Aliases"] = {'sstop'},
  34.             ["Function"] = function(args, speaker)
  35.                 for i,v in pairs(game:GetDescendants()) do
  36.                     if v:IsA("Sound") then
  37.                         v:Stop()
  38.                     end
  39.                 end
  40.                 notify("SoundHack", "Finished stopping sounds.")
  41.             end,
  42.         },
  43.         ["soundloop"] = {
  44.             ["ListName"] = "soundloop / sloup",
  45.             ["Description"] = "Toggle looping of all sounds in game.",
  46.             ["Aliases"] = {'sloop'},
  47.             ["Function"] = function(args, speaker)
  48.                 local ToggleLoop
  49.                 if ToggleLoop == nil then
  50.                 ToggleLoop = false
  51.                 end
  52.                 ToggleLoop = not ToggleLoop
  53.                 if not ToggleLoop then
  54.                     for i,v in pairs(game:GetDescendants()) do
  55.                         if v:IsA("Sound") then
  56.                             v:Stop()
  57.                         end
  58.                     end
  59.                     notify("SoundHack", "Looping has now stopped.")
  60.                 end
  61.                 while ToggleLoop do
  62.                     wait(5)
  63.                     for i,v in pairs(game:GetDescendants()) do
  64.                         if v:IsA("Sound") and v.IsPlaying == false then
  65.                             v:Play()
  66.                         end
  67.                     end
  68.                 end
  69.                 notify("SoundHack", "Looping is now: "..tostring(ToggleLoop))
  70.             end,
  71.         },
  72.         ["soundnum"] = {
  73.             ["ListName"] = "soundnum / snum",
  74.             ["Description"] = "Counts how many sounds are in-game.",
  75.             ["Aliases"] = {'snum'},
  76.             ["Function"] = function(args, speaker)
  77.                 local TotalSounds = 0
  78.                 for i,v in pairs(game:GetDescendants()) do
  79.                     if v:IsA("Sound") then
  80.                         TotalSounds = TotalSounds + 1
  81.                     end
  82.                 end
  83.                 notify("SoundHack", "There are "..tostring(TotalSounds).." sounds in the game.")
  84.             end,
  85.         },
  86.         ["soundpause"] = {
  87.             ["ListName"] = "soundpause / spause",
  88.             ["Description"] = "Pauses all non-paused sounds in-game.",
  89.             ["Aliases"] = {'spause'},
  90.             ["Function"] = function(args, speaker)
  91.                 for i,v in pairs(game:GetDescendants()) do
  92.                     if v:IsA("Sound") and v.IsPaused == false then
  93.                         v:Pause()
  94.                     end
  95.                 end
  96.                 notify("SoundHack", "Finished pausing sounds.")
  97.             end,
  98.         },
  99.         ["soundresume"] = {
  100.             ["ListName"] = "soundresume / sresume",
  101.             ["Description"] = "Resumes all paused sounds in-game.",
  102.             ["Aliases"] = {'sresume'},
  103.             ["Function"] = function(args, speaker)
  104.                 for i,v in pairs(game:GetDescendants()) do
  105.                     if v:IsA("Sound") and v.IsPaused then
  106.                         v:Resume()
  107.                     end
  108.                 end
  109.                 notify("SoundHack", "Finished resuming sounds.")
  110.             end,
  111.         },
  112.         ["soundpitch"] = {
  113.             ["ListName"] = "soundpitch / spitch",
  114.             ["Description"] = "Sets all sounds pitch in-game.",
  115.             ["Aliases"] = {'spitch'},
  116.             ["Function"] = function(args, speaker)
  117.                 for i,v in pairs(game:GetDescendants()) do
  118.                     if v:IsA("Sound") then
  119.                         v.PlaybackSpeed = tonumber(args[1])
  120.                     end
  121.                 end
  122.                 notify("SoundHack", "Finished changing pitch of all sounds.")
  123.             end,
  124.         },
  125.         ["soundvolume"] = {
  126.             ["ListName"] = "soundvolume / svolume",
  127.             ["Description"] = "Sets all sounds volume in-game. (Max Volume is 10)",
  128.             ["Aliases"] = {'svolume'},
  129.             ["Function"] = function(args, speaker)
  130.                 for i,v in pairs(game:GetDescendants()) do
  131.                     if v:IsA("Sound") then
  132.                         v.Volume = tonumber(args[1])
  133.                     end
  134.                 end
  135.                 notify("SoundHack", "Finished changing volume of all sounds.")
  136.             end,
  137.         },
  138.         ["soundexecute"] = {
  139.             ["ListName"] = "soundexecute / sexecute",
  140.             ["Description"] = "Plays a single sound. Example Usage: sexecute workspace.Alarm, or you can use it to scan an area.",
  141.             ["Aliases"] = {'sexecute'},
  142.             ["Function"] = function(args, speaker)
  143.                 local Path = tostring(args[1])
  144.                 if Path ~= nil then
  145.                     if Path:IsA("Sound") then
  146.                         Path:Play()
  147.                     else
  148.                         for i,v in pairs(Path:GetDescendants()) do
  149.                             if v:IsA("Sound") then
  150.                                 v:Play()
  151.                             end
  152.                         end
  153.                     end
  154.                 else
  155.                     notify("SoundHack", "The sound can't be in nil.")
  156.                 end
  157.                 notify("SoundHack", "Finished changing volume of all sounds.")
  158.             end,
  159.         },
  160.         ["soundid"] = {
  161.             ["ListName"] = "soundid / sid",
  162.             ["Description"] = "Play your own music! [NON-FE].",
  163.             ["Aliases"] = {'sid'},
  164.             ["Function"] = function(args, speaker)
  165.                 local soundid = tostring(args[1])
  166.                 local asset = game:GetService("MarketplaceService"):GetProductInfo(tonumber(args[1]))
  167.                 delay(3, function()
  168.                 notify("SoundHack", "Check out console [F9] to view extra statistics of sound id!")
  169.                 end)
  170.                 warn("Sound name: "..tostring(asset.Name)..", Description: \n "..tostring(asset.Description))
  171.                 warn("The sound was created at : "..tostring(asset.Created)..", and was last updated at: "..tostring(asset.Updated))
  172.                 notify("SoundHack", "Now playing: "..tostring(asset.Name))
  173.                 local Sound = Instance.new("Sound", game:GetService("CoreGui"):FindFirstChild("RobloxGui"))
  174.                 Sound.SoundId = "rbxassetid://"..soundid
  175.                 Sound.Volume = 10
  176.                 Sound:Play()
  177.             end,
  178.         },
  179.         ["soundlog"] = {
  180.             ["ListName"] = "soundlog / slog",
  181.             ["Description"] = "Logs all sound id's and their location, then dumps them into the console [F9].",
  182.             ["Aliases"] = {'slog'},
  183.             ["Function"] = function(args, speaker)
  184.                 for i,v in pairs(game:GetDescendants()) do
  185.                     if v:IsA("Sound") then
  186.                         local soundid = tostring(v.SoundId)
  187.                         warn("SoundHack - "..soundid.." / Found at the location: "..tostring(v:GetFullName()))
  188.                     end
  189.                 end
  190.                 notify("SoundHack", "Finished logging sounds.")
  191.             end,
  192.         },
  193.     },
  194. }
  195.  
  196. return Plugin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement