Vortexture

The Streets: Separate Audio Commands

Aug 7th, 2019
878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.95 KB | None | 0 0
  1. TeleportService = game:GetService("TeleportService")
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. bringboomsback = false
  4. godmode = false
  5. continueunmutable = false
  6. visualize = false
  7. visualizetools = {}
  8. rot = 0
  9. sine = 0
  10.  
  11. function gettools()
  12.     local matchingtools = {}
  13.     for i = 1,#visualizetools do
  14.         local toolname = string.lower(visualizetools[i])
  15.         if toolname == "hat" and not game.Players.LocalPlayer.Backpack:FindFirstChild("hat") and not game.Players.LocalPlayer.Character:FindFirstChild("hat") and game.Players.LocalPlayer.Character.Torso:FindFirstChild("Song") then
  16.             local LocalPlayer = game:GetService("Players").LocalPlayer
  17.             for _, hat in pairs(LocalPlayer.Character.Humanoid:GetAccessories()) do
  18.                 if hat:FindFirstChild("Handle") then
  19.                     local tool = Instance.new("Tool", LocalPlayer.Backpack)
  20.                     tool.Name = "hat"
  21.                     local hathandle = hat.Handle
  22.                     hathandle:FindFirstChildOfClass("Weld"):Destroy()
  23.                     hathandle.Parent = tool
  24.                     hathandle.Massless = true
  25.                 end
  26.             end
  27.             wait()
  28.         end
  29.         for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  30.             if v:IsA("Tool") then
  31.                 local lowername = string.lower(v.Name)
  32.                 if string.sub(lowername, 1, #toolname) == toolname then
  33.                     table.insert(matchingtools, v)
  34.                 end
  35.             end
  36.         end
  37.         for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  38.             if v:IsA("Tool") then
  39.                 local lowername = string.lower(v.Name)
  40.                 if string.sub(lowername, 1, #toolname) == toolname then
  41.                     table.insert(matchingtools, v)
  42.                 end
  43.             end
  44.         end
  45.     end
  46.     return matchingtools
  47. end
  48.  
  49. local function deseat(instance)
  50.     for i,v in pairs(instance:GetChildren()) do
  51.     if v:IsA("Seat") then
  52.         v.Parent = game.Lighting
  53.     end
  54.         deseat(v)
  55.     end
  56. end
  57. deseat(game.Workspace)
  58.  
  59. local function radioglitchy(instance)
  60.     for i,v in pairs(instance:GetChildren()) do
  61.         if v:IsA("Script") then
  62.             v:Destroy()
  63.         end
  64.         radioglitchy(v)
  65.     end
  66. end
  67.  
  68. mouse.KeyDown:Connect(function(key)
  69.     if string.byte(key) == 92 then
  70.         if game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool") then
  71.             game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool").Parent = game.Workspace.Terrain
  72.         end
  73.     end
  74. end)
  75.  
  76. function godbindablefunc(content)
  77.     godmode = true
  78.     if game.Players.LocalPlayer.Character ~= nil then
  79.         game.Players.LocalPlayer.Character:BreakJoints()
  80.     end
  81. end
  82.  
  83. godbindable = Instance.new("BindableFunction")
  84. godbindable.OnInvoke = godbindablefunc
  85.  
  86. game.Players.LocalPlayer.Chatted:Connect(function(msg)
  87. lower = string.lower(msg)
  88.  
  89.     if string.find(lower,"vis") then
  90.         for i,v in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
  91.             if v:IsA("Sound") then
  92.                 if v.Playing == true then
  93.                     song = v
  94.                 end
  95.             end
  96.         end
  97.     end
  98.  
  99.     if string.find(lower,":play ") then
  100.         idtoplay = string.gsub(lower,":play ","")
  101.         for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  102.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  103.                 v.Parent = game.Players.LocalPlayer.Character
  104.             end
  105.         end
  106.         wait(0.1)
  107.         game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", idtoplay)
  108.         wait(0.1)
  109.         radioglitchy(game.Players.LocalPlayer.Character.BoomBox)
  110.         game.Players.LocalPlayer.Character:FindFirstChild("BoomBox").Parent = game.Players.LocalPlayer.Backpack
  111.     end
  112.  
  113. if string.find(lower,"/e play ") then
  114.     idtoplay = string.gsub(lower,"/e play ","")
  115.     for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  116.         if (v:IsA("Tool") and v.Name == "BoomBox") then
  117.             v.Parent = game.Players.LocalPlayer.Character
  118.         end
  119.     end
  120.     wait(0.1)
  121.     game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", idtoplay)
  122.     wait(0.1)
  123.     radioglitchy(game.Players.LocalPlayer.Character.BoomBox)
  124.     game.Players.LocalPlayer.Character:FindFirstChild("BoomBox").Parent = game.Players.LocalPlayer.Backpack
  125. end
  126.  
  127. if string.find(lower,"/e :play ") then
  128.     idtoplay = string.gsub(lower,"/e :play ","")
  129.     for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  130.         if (v:IsA("Tool") and v.Name == "BoomBox") then
  131.             v.Parent = game.Players.LocalPlayer.Character
  132.         end
  133.     end
  134.     wait(0.1)
  135.     game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", idtoplay)
  136.     wait(0.1)
  137.     radioglitchy(game.Players.LocalPlayer.Character.BoomBox)
  138.     game.Players.LocalPlayer.Character:FindFirstChild("BoomBox").Parent = game.Players.LocalPlayer.Backpack
  139. end
  140.  
  141. if string.find(lower,":mplay ") then
  142.     if godmode == true then
  143.         idtoplay = string.gsub(lower,":mplay ","")
  144.         for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  145.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  146.                 v.Parent = game.Players.LocalPlayer.Character
  147.             end
  148.         end
  149.         wait(0.1)
  150.         for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  151.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  152.             v.Remote:FireServer("PlaySong", idtoplay)
  153.             end
  154.         end
  155.     else
  156.         game.StarterGui:SetCore("SendNotification", {
  157.             Title = "Turn on God!";
  158.             Text = "You need god mode on to do that!";
  159.             Icon = "rbxassetid://1221422603";
  160.             Duration = 5;
  161.             Callback = godbindable;
  162.             Button1 = "Turn on Godmode";
  163.         })
  164.     end
  165. end
  166.  
  167. if string.find(lower,"/e mplay ") then
  168.     if godmode == true then
  169.         idtoplay = string.gsub(lower,"/e mplay ","")
  170.         for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  171.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  172.                 v.Parent = game.Players.LocalPlayer.Character
  173.             end
  174.         end
  175.         wait(0.1)
  176.         for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  177.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  178.             v.Remote:FireServer("PlaySong", idtoplay)
  179.             end
  180.         end
  181.     else
  182.         game.StarterGui:SetCore("SendNotification", {
  183.             Title = "Turn on God!";
  184.             Text = "You need god mode on to do that!";
  185.             Icon = "rbxassetid://1221422603";
  186.             Duration = 5;
  187.             Callback = godbindable;
  188.             Button1 = "Turn on Godmode";
  189.         })
  190.     end
  191. end
  192.  
  193.  
  194. if string.find(lower,"/e :mplay ") then
  195.     if godmode == true then
  196.         idtoplay = string.gsub(lower,"/e :mplay ","")
  197.         for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  198.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  199.                 v.Parent = game.Players.LocalPlayer.Character
  200.             end
  201.         end
  202.         wait(0.1)
  203.         for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  204.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  205.             v.Remote:FireServer("PlaySong", idtoplay)
  206.             end
  207.         end
  208.     else
  209.         game.StarterGui:SetCore("SendNotification", {
  210.             Title = "Turn on God!";
  211.             Text = "You need god mode on to do that!";
  212.             Icon = "rbxassetid://1221422603";
  213.             Duration = 5;
  214.             Callback = godbindable;
  215.             Button1 = "Turn on Godmode";
  216.         })
  217.     end
  218. end
  219.  
  220.  
  221. if lower == ":bringboom" then
  222.     if godmode == true then
  223.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  224.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  225.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  226.             end
  227.         end
  228.     else
  229.         game.StarterGui:SetCore("SendNotification", {
  230.             Title = "Turn on God!";
  231.             Text = "You need god mode on to do that!";
  232.             Icon = "rbxassetid://1221422603";
  233.             Duration = 5;
  234.             Callback = godbindable;
  235.             Button1 = "Turn on Godmode";
  236.         })
  237.     end
  238. end
  239.  
  240. if lower == "/e bringboom" then
  241.     if godmode == true then
  242.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  243.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  244.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  245.             end
  246.         end
  247.     else
  248.         game.StarterGui:SetCore("SendNotification", {
  249.             Title = "Turn on God!";
  250.             Text = "You need god mode on to do that!";
  251.             Icon = "rbxassetid://1221422603";
  252.             Duration = 5;
  253.             Callback = godbindable;
  254.             Button1 = "Turn on Godmode";
  255.         })
  256.     end
  257. end
  258.  
  259. if lower == "/e :bringboom" then
  260.     if godmode == true then
  261.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  262.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  263.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  264.             end
  265.         end
  266.     else
  267.         game.StarterGui:SetCore("SendNotification", {
  268.             Title = "Turn on God!";
  269.             Text = "You need god mode on to do that!";
  270.             Icon = "rbxassetid://1221422603";
  271.             Duration = 5;
  272.             Callback = godbindable;
  273.             Button1 = "Turn on Godmode";
  274.         })
  275.     end
  276. end
  277.  
  278.  
  279. if lower == ":boombring" then
  280.     if godmode == true then
  281.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  282.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  283.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  284.             end
  285.         end
  286.     else
  287.         game.StarterGui:SetCore("SendNotification", {
  288.             Title = "Turn on God!";
  289.             Text = "You need god mode on to do that!";
  290.             Icon = "rbxassetid://1221422603";
  291.             Duration = 5;
  292.             Callback = godbindable;
  293.             Button1 = "Turn on Godmode";
  294.         })
  295.     end
  296. end
  297.  
  298.  
  299. if lower == "/e boombring" then
  300.     if godmode == true then
  301.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  302.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  303.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  304.             end
  305.         end
  306.     else
  307.         game.StarterGui:SetCore("SendNotification", {
  308.             Title = "Turn on God!";
  309.             Text = "You need god mode on to do that!";
  310.             Icon = "rbxassetid://1221422603";
  311.             Duration = 5;
  312.             Callback = godbindable;
  313.             Button1 = "Turn on Godmode";
  314.         })
  315.     end
  316. end
  317.  
  318.  
  319. if lower == "/e :boombring" then
  320.     if godmode == true then
  321.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  322.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  323.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  324.             end
  325.         end
  326.     else
  327.         game.StarterGui:SetCore("SendNotification", {
  328.             Title = "Turn on God!";
  329.             Text = "You need god mode on to do that!";
  330.             Icon = "rbxassetid://1221422603";
  331.             Duration = 5;
  332.             Callback = godbindable;
  333.             Button1 = "Turn on Godmode";
  334.         })
  335.     end
  336. end
  337.  
  338. if lower == ":dupeboom" then
  339.     if godmode == true then
  340.         for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  341.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  342.                 v.Parent = game.Players.LocalPlayer.Character
  343.             end
  344.         end
  345.         wait()
  346.         for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  347.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  348.                 v.Parent = game.Workspace.Terrain
  349.             end
  350.         end
  351.         wait()
  352.         for i = 1,3 do
  353.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
  354.             wait(0.1)
  355.         end
  356.         bringboomsback = true
  357.         if game.Players.LocalPlayer.Character ~= nil then
  358.             game.Players.LocalPlayer.Character:BreakJoints()
  359.         end
  360.     else
  361.         game.StarterGui:SetCore("SendNotification", {
  362.             Title = "Turn on God!";
  363.             Text = "You need god mode on to do that!";
  364.             Icon = "rbxassetid://1221422603";
  365.             Duration = 5;
  366.             Callback = godbindable;
  367.             Button1 = "Turn on Godmode";
  368.         })
  369.     end
  370. end
  371.  
  372. if lower == "/e dupeboom" then
  373.     if godmode == true then
  374.         for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  375.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  376.                 v.Parent = game.Players.LocalPlayer.Character
  377.             end
  378.         end
  379.         wait()
  380.         for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  381.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  382.                 v.Parent = game.Workspace.Terrain
  383.             end
  384.         end
  385.         wait()
  386.         for i = 1,3 do
  387.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
  388.             wait(0.1)
  389.         end
  390.         bringboomsback = true
  391.         if game.Players.LocalPlayer.Character ~= nil then
  392.             game.Players.LocalPlayer.Character:BreakJoints()
  393.         end
  394.     else
  395.         game.StarterGui:SetCore("SendNotification", {
  396.             Title = "Turn on God!";
  397.             Text = "You need god mode on to do that!";
  398.             Icon = "rbxassetid://1221422603";
  399.             Duration = 5;
  400.             Callback = godbindable;
  401.             Button1 = "Turn on Godmode";
  402.         })
  403.     end
  404. end
  405.  
  406. if lower == "/e :dupeboom" then
  407.     if godmode == true then
  408.         for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  409.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  410.                 v.Parent = game.Players.LocalPlayer.Character
  411.             end
  412.         end
  413.         wait()
  414.         for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  415.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  416.                 v.Parent = game.Workspace.Terrain
  417.             end
  418.         end
  419.         wait()
  420.         for i = 1,3 do
  421.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
  422.             wait(0.1)
  423.         end
  424.         bringboomsback = true
  425.         if game.Players.LocalPlayer.Character ~= nil then
  426.             game.Players.LocalPlayer.Character:BreakJoints()
  427.         end
  428.     else
  429.         game.StarterGui:SetCore("SendNotification", {
  430.             Title = "Turn on God!";
  431.             Text = "You need god mode on to do that!";
  432.             Icon = "rbxassetid://1221422603";
  433.             Duration = 5;
  434.             Callback = godbindable;
  435.             Button1 = "Turn on Godmode";
  436.         })
  437.     end
  438. end
  439.  
  440.  
  441. if lower == "/e boombring" then
  442.     if godmode == true then
  443.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  444.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  445.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  446.             end
  447.         end
  448.     else
  449.         game.StarterGui:SetCore("SendNotification", {
  450.             Title = "Turn on God!";
  451.             Text = "You need god mode on to do that!";
  452.             Icon = "rbxassetid://1221422603";
  453.             Duration = 5;
  454.             Callback = godbindable;
  455.             Button1 = "Turn on Godmode";
  456.         })
  457.     end
  458. end
  459.  
  460.  
  461. if lower == "/e :boombring" then
  462.     if godmode == true then
  463.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  464.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  465.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  466.             end
  467.         end
  468.     else
  469.         game.StarterGui:SetCore("SendNotification", {
  470.             Title = "Turn on God!";
  471.             Text = "You need god mode on to do that!";
  472.             Icon = "rbxassetid://1221422603";
  473.             Duration = 5;
  474.             Callback = godbindable;
  475.             Button1 = "Turn on Godmode";
  476.         })
  477.     end
  478. end
  479.  
  480.  
  481. if lower == ":god" then
  482.     godmode = true
  483.     if game.Players.LocalPlayer.Character ~= nil then
  484.         game.Players.LocalPlayer.Character:BreakJoints()
  485.     end
  486. end
  487. if lower == "/e god" then
  488.     godmode = true
  489.     if game.Players.LocalPlayer.Character ~= nil then
  490.         game.Players.LocalPlayer.Character:BreakJoints()
  491.     end
  492. end
  493. if lowerf == "/e :god" then
  494.     godmode = true
  495.     if game.Players.LocalPlayer.Character ~= nil then
  496.         game.Players.LocalPlayer.Character:BreakJoints()
  497.     end
  498. end
  499.  
  500.  
  501. if lower == ":ungod" then
  502.     godmode = false
  503.     if game.Players.LocalPlayer.Character ~= nil then
  504.         game.Players.LocalPlayer.Character:BreakJoints()
  505.     end
  506. end
  507. if lower == "/e ungod" then
  508.     godmode = false
  509.     if game.Players.LocalPlayer.Character ~= nil then
  510.         game.Players.LocalPlayer.Character:BreakJoints()
  511.     end
  512. end
  513. if lower == "/e :ungod" then
  514.     godmode = false
  515.     if game.Players.LocalPlayer.Character ~= nil then
  516.         game.Players.LocalPlayer.Character:BreakJoints()
  517.     end
  518. end
  519.  
  520.     if lower == ":rejoin" then
  521.         TeleportService:Teleport(455366377, game.Players.LocalPlayer)
  522.     end
  523.     if lower == "/e rejoin" then
  524.         TeleportService:Teleport(455366377, game.Players.LocalPlayer)
  525.     end
  526.     if lower == "/e :rejoin" then
  527.         TeleportService:Teleport(455366377, game.Players.LocalPlayer)
  528.     end
  529.  
  530.  
  531. if string.find(lower,":deseat") then
  532.     deseat(game.Workspace)        
  533. end
  534. if string.find(lower,"/e deseat") then
  535.     deseat(game.Workspace)        
  536. end
  537. if string.find(lower,"/e :deseat") then
  538.     deseat(game.Workspace)        
  539. end
  540.  
  541.  
  542. if lower == ":unmutable" or lower == "/e unmutable" or lower == "/e :unmutable" then
  543.     for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  544.         if (v:IsA("Tool") and v.Name == "BoomBox") then
  545.             v.Parent = game.Players.LocalPlayer.Character
  546.         end
  547.     end
  548.     wait()
  549.     for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  550.         if (v:IsA("Tool") and v.Name == "BoomBox") then
  551.             v.Parent = game.Workspace.Terrain
  552.         end
  553.     end
  554.     wait()
  555.     for i = 1,3 do
  556.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
  557.         wait(0.1)
  558.     end
  559.     bringboomsback = true
  560.     if game.Players.LocalPlayer.Character ~= nil then
  561.         game.Players.LocalPlayer.Character:BreakJoints()
  562.     end
  563.     repeat wait() until continueunmutable == true
  564.     continueunmutable = false  
  565.     wait()
  566.     for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  567.         if v:IsA("Tool") and v.Name == "BoomBox" and i == 2 then
  568.             v.Parent = game.Players.LocalPlayer.Character
  569.             repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild("BoomBox")
  570.         end
  571.     end
  572.     wait(0.4)
  573.     for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  574.         if v:IsA("Tool") and v.Name == "BoomBox" and v:FindFirstChild("Remote") then
  575.             v.Remote:FireServer("PlaySong", "3456969984")
  576.             wait(1.411)
  577.             v.Parent = game.Players.LocalPlayer.Backpack
  578.         end
  579.     end
  580.     game.StarterGui:SetCore("SendNotification", {
  581.         Title = "Done!";
  582.         Text = "Your boombox is unmutable now";
  583.         Icon = "rbxassetid://847562022";
  584.         Duration = 5;
  585.     })
  586. end
  587.  
  588.  
  589.     if string.find(lower,":visualize") then
  590.         local firstspace = string.find(lower, " ")
  591.         local toolnames = string.sub(lower, firstspace + 1, -1)
  592.         if string.find(toolnames, " ") and not godmode then
  593.             promptgod()
  594.             return
  595.         end
  596.         visualize = false
  597.         for i = 1,#visualizetools do
  598.             table.remove(visualizetools, 1)
  599.         end
  600.         if game.Players.LocalPlayer.Character ~= nil then
  601.             for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  602.                 if v:IsA("Tool") then
  603.                     v.Parent = game.Players.LocalPlayer.Backpack
  604.                 end
  605.             end
  606.         end
  607.         wait()
  608.         local mode = string.sub(string.gsub(lower, ":visualize", ""), 1, 1)
  609.         if string.sub(mode, 1, 1) == " " then
  610.             -- Nothing needs to be done
  611.         elseif string.match(mode, "%d") then
  612.             local secondplace = string.sub(string.gsub(lower, ":visualize", ""), 2, 2)
  613.             if string.match(secondplace, "%d") then
  614.                 local doubledigit = string.sub(string.gsub(lower, ":visualize", ""), 0, 2)
  615.                 visualizemode = tonumber(doubledigit)
  616.             else
  617.                 visualizemode = tonumber(mode)
  618.             end
  619.         end
  620.         while wait() do
  621.             if string.sub(toolnames, 1, 1) == " " then
  622.                 break
  623.             end
  624.             if string.find(toolnames, " ") then
  625.                 local space = string.find(toolnames, " ")
  626.                 local toolname = string.sub(toolnames, 0, space - 1)
  627.                 toolnames = string.sub(toolnames, space + 1, -1)
  628.                 if string.lower(toolname) == "hats" then
  629.                     table.insert(visualizetools, #visualizetools + 1, "hat")
  630.                 else
  631.                     table.insert(visualizetools, #visualizetools + 1, toolname)
  632.                 end
  633.             else
  634.                 local lasttoolname = string.sub(toolnames, 0, -1)
  635.                 if string.lower(lasttoolname) == "hats" then
  636.                     table.insert(visualizetools, #visualizetools + 1, "hat")
  637.                     break
  638.                 else
  639.                     table.insert(visualizetools, #visualizetools + 1, lasttoolname)
  640.                     break
  641.                 end
  642.             end
  643.         end
  644.         visualize = true
  645.     end
  646.  
  647.     if string.find(lower,"/e visualize") then
  648.         local firstspace = string.find(lower, " ", 4)
  649.         local toolnames = string.sub(lower, firstspace + 1, -1)
  650.         if string.find(toolnames, " ") and not godmode then
  651.             promptgod()
  652.             return
  653.         end
  654.         visualize = false
  655.         for i = 1,#visualizetools do
  656.             table.remove(visualizetools, 1)
  657.         end
  658.         if game.Players.LocalPlayer.Character ~= nil then
  659.             for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  660.                 if v:IsA("Tool") then
  661.                     v.Parent = game.Players.LocalPlayer.Backpack
  662.                 end
  663.             end
  664.         end
  665.         wait()
  666.         local mode = string.sub(string.gsub(lower, "/e visualize", ""), 1, 1)
  667.         if string.sub(mode, 1, 1) == " " then
  668.             -- Nothing needs to be done
  669.         elseif string.match(mode, "%d") then
  670.             local secondplace = string.sub(string.gsub(lower, "/e visualize", ""), 2, 2)
  671.             if string.match(secondplace, "%d") then
  672.                 local doubledigit = string.sub(string.gsub(lower, "/e visualize", ""), 0, 2)
  673.                 visualizemode = tonumber(doubledigit)
  674.             else
  675.                 visualizemode = tonumber(mode)
  676.             end
  677.         end
  678.         while wait() do
  679.             if string.sub(toolnames, 1, 1) == " " then
  680.                 break
  681.             end
  682.             if string.find(toolnames, " ") then
  683.                 local space = string.find(toolnames, " ")
  684.                 local toolname = string.sub(toolnames, 0, space - 1)
  685.                 toolnames = string.sub(toolnames, space + 1, -1)
  686.                 if string.lower(toolname) == "hats" then
  687.                     table.insert(visualizetools, #visualizetools + 1, "hat")
  688.                 else
  689.                     table.insert(visualizetools, #visualizetools + 1, toolname)
  690.                 end
  691.             else
  692.                 local lasttoolname = string.sub(toolnames, 0, -1)
  693.                 if string.lower(lasttoolname) == "hats" then
  694.                     table.insert(visualizetools, #visualizetools + 1, "hat")
  695.                     break
  696.                 else
  697.                     table.insert(visualizetools, #visualizetools + 1, lasttoolname)
  698.                     break
  699.                 end
  700.             end
  701.         end
  702.         visualize = true
  703.         for i = 1,#visualizetools do
  704.         end
  705.     end
  706.  
  707.     if string.find(lower,"/e :visualize") then
  708.         local firstspace = string.find(lower, " ", 4)
  709.         local toolnames = string.sub(lower, firstspace + 1, -1)
  710.         if string.find(toolnames, " ") and not godmode then
  711.             promptgod()
  712.             return
  713.         end
  714.         visualize = false
  715.         for i = 1,#visualizetools do
  716.             table.remove(visualizetools, 1)
  717.         end
  718.         if game.Players.LocalPlayer.Character ~= nil then
  719.             for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  720.                 if v:IsA("Tool") then
  721.                     v.Parent = game.Players.LocalPlayer.Backpack
  722.                 end
  723.             end
  724.         end
  725.         wait()
  726.         local mode = string.sub(string.gsub(lower, "/e :visualize", ""), 1, 1)
  727.         if string.sub(mode, 1, 1) == " " then
  728.             -- Nothing needs to be done
  729.         elseif string.match(mode, "%d") then
  730.             local secondplace = string.sub(string.gsub(lower, "/e :visualize", ""), 2, 2)
  731.             if string.match(secondplace, "%d") then
  732.                 local doubledigit = string.sub(string.gsub(lower, "/e :visualize", ""), 0, 2)
  733.                 visualizemode = tonumber(doubledigit)
  734.             else
  735.                 visualizemode = tonumber(mode)
  736.             end
  737.         end
  738.         while wait() do
  739.             if string.sub(toolnames, 1, 1) == " " then
  740.                 break
  741.             end
  742.             if string.find(toolnames, " ") then
  743.                 local space = string.find(toolnames, " ")
  744.                 local toolname = string.sub(toolnames, 0, space - 1)
  745.                 toolnames = string.sub(toolnames, space + 1, -1)
  746.                 if string.lower(toolname) == "hats" then
  747.                     table.insert(visualizetools, #visualizetools + 1, "hat")
  748.                 else
  749.                     table.insert(visualizetools, #visualizetools + 1, toolname)
  750.                 end
  751.             else
  752.                 local lasttoolname = string.sub(toolnames, 0, -1)
  753.                 if string.lower(lasttoolname) == "hats" then
  754.                     table.insert(visualizetools, #visualizetools + 1, "hat")
  755.                     break
  756.                 else
  757.                     table.insert(visualizetools, #visualizetools + 1, lasttoolname)
  758.                     break
  759.                 end
  760.             end
  761.         end
  762.         visualize = true
  763.     end
  764.  
  765.     if lower == ":unvisualize" then
  766.         visualize = false
  767.         for i = 1,#visualizetools do
  768.             table.remove(visualizetools, i)
  769.         end
  770.         if game.Players.LocalPlayer.Character ~= nil then
  771.             for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  772.                 if v:IsA("Tool") then
  773.                     v.Parent = game.Players.LocalPlayer.Backpack
  774.                 end
  775.             end
  776.         end
  777.     end
  778.  
  779.     if lower == "/e unvisualize" then
  780.         visualize = false
  781.         for i = 1,#visualizetools do
  782.             table.remove(visualizetools, i)
  783.         end
  784.         if game.Players.LocalPlayer.Character ~= nil then
  785.             for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  786.                 if v:IsA("Tool") then
  787.                     v.Parent = game.Players.LocalPlayer.Backpack
  788.                 end
  789.             end
  790.         end
  791.     end
  792.  
  793.     if lower == "/e :unvisualize" then
  794.         visualize = false
  795.         for i = 1,#visualizetools do
  796.             table.remove(visualizetools, i)
  797.         end
  798.         if game.Players.LocalPlayer.Character ~= nil then
  799.             for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  800.                 if v:IsA("Tool") then
  801.                     v.Parent = game.Players.LocalPlayer.Backpack
  802.                 end
  803.             end
  804.         end
  805.     end
  806.  
  807.     if string.find(lower,":vismode ") then
  808.         local input = string.gsub(lower, ":vismode ", "")
  809.         if not string.match(input, "%a") then
  810.             visualizemode = tonumber(input)
  811.         end
  812.     end
  813.  
  814.     if string.find(lower,"/e vismode ") then
  815.         local input = string.gsub(lower, "/e vismode ", "")
  816.         if not string.match(input, "%a") then
  817.             visualizemode = tonumber(input)
  818.         end
  819.     end
  820.  
  821.     if string.find(lower,"/e :vismode ") then
  822.         local input = string.gsub(lower, "/e :vismode ", "")
  823.         if not string.match(input, "%a") then
  824.             visualizemode = tonumber(input)
  825.         end
  826.     end
  827.  
  828. end)
  829.  
  830. game.Players.LocalPlayer.CharacterAppearanceLoaded:Connect(function(char)
  831.     if bringboomsback == true then
  832.         bringboomsback = false
  833.         wait(0.5)
  834.         for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
  835.             if (v:IsA("Tool") and v.Name == "BoomBox") then
  836.                 v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  837.                 repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild("BoomBox")
  838.             end
  839.         end
  840.         continueunmutable = true
  841.     end
  842. end)
  843.  
  844.  
  845. game:GetService('RunService').Stepped:connect(function()
  846.     if godmode == true then
  847.         if game.Players.LocalPlayer.Character ~= nil then
  848.             if game.Players.LocalPlayer.Character:FindFirstChild("Right Leg") then
  849.                 game.Players.LocalPlayer.Character:FindFirstChild("Right Leg"):Destroy()
  850.             end
  851.         end
  852.     end
  853.     if visualize then
  854.         if game.Players.LocalPlayer.Character ~= nil then
  855.             if game.Players.LocalPlayer.Character:FindFirstChild("Torso") then
  856.                 if game.Players.LocalPlayer.Character.Torso:FindFirstChild("Song") then
  857.                     rot = rot + 2 + song.PlaybackLoudness/400    
  858.                     local tools = gettools()
  859.                     for i,v in next, gettools() do
  860.                         sine = sine + 25
  861.                         v.Parent = game.Players.LocalPlayer.Backpack
  862.                         if visualizemode == 1 then
  863.                             v.Grip = CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) * CFrame.new(0,song.PlaybackLoudness/200 + 1,0) * CFrame.Angles(math.rad((i*(360/#tools))+rot),math.rad((i*(360/#tools))+rot),0) * CFrame.new(1.5,0,-1+math.sin(sine/#tools)*song.PlaybackLoudness/100)
  864.                         elseif visualizemode == 2 then
  865.                             v.Grip = CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)) * CFrame.new(0,song.PlaybackLoudness/200 + 4,0) * CFrame.Angles(math.rad((i*(360/#tools))+rot),math.rad(90),0) * CFrame.new(1.5,0,-2+math.sin(sine/#tools)*song.PlaybackLoudness/100)
  866.                         elseif visualizemode == 3 then
  867.                             v.Grip = CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) * CFrame.new(song.PlaybackLoudness/200 + 1,song.PlaybackLoudness/200 + 2,0) * CFrame.Angles(math.rad((i*(360/#tools))+rot),math.rad(90),0) * CFrame.new(1.5,0,-2+math.sin(sine/#tools)*song.PlaybackLoudness/100)
  868.                         elseif visualizemode == 4 then
  869.                             v.Grip = CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)) * CFrame.new(0,song.PlaybackLoudness/200 + 4,0) * CFrame.Angles(math.rad((i*(360/#tools))+rot),math.rad(90),math.rad((i*(360/#tools))+rot)) * CFrame.new(1.5,0,-2+math.sin(sine/#tools)*song.PlaybackLoudness/100)
  870.                         elseif visualizemode == 5 then
  871.                             v.Grip = CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)) * CFrame.new(0,song.PlaybackLoudness/200 + 4,0) * CFrame.Angles(math.rad((i*(360/#tools))+rot),math.rad(90),90) * CFrame.new(1.5+math.sin(sine/#tools)*song.PlaybackLoudness/100,0,-2)
  872.                         elseif visualizemode == 6 then
  873.                             v.Grip = CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)) * CFrame.new(0,song.PlaybackLoudness/200 + 4,0) * CFrame.Angles(math.rad((i*(360/#tools))+rot),math.rad(90),90) * CFrame.new(1.5+math.sin(sine/#tools)*song.PlaybackLoudness/100,0,0.01+math.sin(sine/#tools)*song.PlaybackLoudness/100)
  874.                         else
  875.                             visualizemode = 1
  876.                         end
  877.                         v.Parent = game.Players.LocalPlayer.Character
  878.                     end
  879.                 end
  880.             end
  881.         end
  882.     end
  883. end)
  884.  
  885. game.StarterGui:SetCore("SendNotification", {
  886.     Title = "Done loading!";
  887.     Text = "Commands by Aidez";
  888.     Icon = "rbxassetid://847562022";
  889.     Duration = 7;
  890. })
Add Comment
Please, Sign In to add comment