Skip to content

Commit

Permalink
Merge pull request #422 from Awesomewebm/patch-1
Browse files Browse the repository at this point in the history
:reverb
  • Loading branch information
Sceleratis authored Jul 15, 2021
2 parents 484e02a + 0924402 commit 9128055
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions MainModule/Server/Commands/Moderators.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6285,6 +6285,55 @@ return function(Vargs, env)
end
end
};

Reverb = {
Prefix = Settings.Prefix;
Commands = {"reverb","ambientreverb";};
Args = {"reverbType","optional player";};
Description = "Lets you change the reverb type with an optional player argument (CASE SENSITTIVE)";
AdminLevel = "Moderators";
Function = function(plr,args,data)
local rev = args[1]

local reverbs = {"NoReverb","GenericReverb","PaddedCell","Room","Bathroom","LivingRoom",
"StoneRoom","Auditorium","ConcertHall","Cave","Arena","Hangar","CarpettedHallway",
"Hallway","StoneCorridor","Alley","Forest","City","Mountains","Quarry","Plain",
"ParkingLot","SewerPipe","UnderWater"}

if not rev or not Enum.ReverbType[rev] then

Functions.Hint("Argument 1 missing or nil. Opening Reverb List",{plr})

local tab = {}

table.insert(tab,{Text = "Note: Argument is CASE SENSITIVE"})

for _,v in pairs(reverbs) do
table.insert(tab,{Text = v})
end

Remote.MakeGui(plr,"List",{Title = "Reverbs";Table = tab})

return
end

if args[2] then

for i,v in pairs(service.GetPlayers(plr,args[2])) do
Remote.LoadCode(v,"game:GetService(\"SoundService\").AmbientReverb = Enum.ReverbType["..rev.."]")

end

Functions.Hint("Changed Ambient Reverb of specified player(s)",{plr})

else

service.SoundService.AmbientReverb = Enum.ReverbType[rev]
Functions.Hint("Successfully changed the Ambient Reverb to "..rev,{plr})

end
end
};

Inspect = {
Prefix = Settings.Prefix;
Expand Down

0 comments on commit 9128055

Please sign in to comment.