Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TeleportService = game:GetService("TeleportService")
- mouse = game.Players.LocalPlayer:GetMouse()
- bringboomsback = false
- godmode = false
- continueunmutable = false
- visualize = false
- visualizetools = {}
- rot = 0
- sine = 0
- function gettools()
- local matchingtools = {}
- for i = 1,#visualizetools do
- local toolname = string.lower(visualizetools[i])
- 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
- local LocalPlayer = game:GetService("Players").LocalPlayer
- for _, hat in pairs(LocalPlayer.Character.Humanoid:GetAccessories()) do
- if hat:FindFirstChild("Handle") then
- local tool = Instance.new("Tool", LocalPlayer.Backpack)
- tool.Name = "hat"
- local hathandle = hat.Handle
- hathandle:FindFirstChildOfClass("Weld"):Destroy()
- hathandle.Parent = tool
- hathandle.Massless = true
- end
- end
- wait()
- end
- for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if v:IsA("Tool") then
- local lowername = string.lower(v.Name)
- if string.sub(lowername, 1, #toolname) == toolname then
- table.insert(matchingtools, v)
- end
- end
- end
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- local lowername = string.lower(v.Name)
- if string.sub(lowername, 1, #toolname) == toolname then
- table.insert(matchingtools, v)
- end
- end
- end
- end
- return matchingtools
- end
- local function deseat(instance)
- for i,v in pairs(instance:GetChildren()) do
- if v:IsA("Seat") then
- v.Parent = game.Lighting
- end
- deseat(v)
- end
- end
- deseat(game.Workspace)
- local function radioglitchy(instance)
- for i,v in pairs(instance:GetChildren()) do
- if v:IsA("Script") then
- v:Destroy()
- end
- radioglitchy(v)
- end
- end
- mouse.KeyDown:Connect(function(key)
- if string.byte(key) == 92 then
- if game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool") then
- game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool").Parent = game.Workspace.Terrain
- end
- end
- end)
- function godbindablefunc(content)
- godmode = true
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- end
- godbindable = Instance.new("BindableFunction")
- godbindable.OnInvoke = godbindablefunc
- game.Players.LocalPlayer.Chatted:Connect(function(msg)
- lower = string.lower(msg)
- if string.find(lower,"vis") then
- for i,v in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
- if v:IsA("Sound") then
- if v.Playing == true then
- song = v
- end
- end
- end
- end
- if string.find(lower,":play ") then
- idtoplay = string.gsub(lower,":play ","")
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait(0.1)
- game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", idtoplay)
- wait(0.1)
- radioglitchy(game.Players.LocalPlayer.Character.BoomBox)
- game.Players.LocalPlayer.Character:FindFirstChild("BoomBox").Parent = game.Players.LocalPlayer.Backpack
- end
- if string.find(lower,"/e play ") then
- idtoplay = string.gsub(lower,"/e play ","")
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait(0.1)
- game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", idtoplay)
- wait(0.1)
- radioglitchy(game.Players.LocalPlayer.Character.BoomBox)
- game.Players.LocalPlayer.Character:FindFirstChild("BoomBox").Parent = game.Players.LocalPlayer.Backpack
- end
- if string.find(lower,"/e :play ") then
- idtoplay = string.gsub(lower,"/e :play ","")
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait(0.1)
- game.Players.LocalPlayer.Character.BoomBox.Remote:FireServer("PlaySong", idtoplay)
- wait(0.1)
- radioglitchy(game.Players.LocalPlayer.Character.BoomBox)
- game.Players.LocalPlayer.Character:FindFirstChild("BoomBox").Parent = game.Players.LocalPlayer.Backpack
- end
- if string.find(lower,":mplay ") then
- if godmode == true then
- idtoplay = string.gsub(lower,":mplay ","")
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait(0.1)
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Remote:FireServer("PlaySong", idtoplay)
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if string.find(lower,"/e mplay ") then
- if godmode == true then
- idtoplay = string.gsub(lower,"/e mplay ","")
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait(0.1)
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Remote:FireServer("PlaySong", idtoplay)
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if string.find(lower,"/e :mplay ") then
- if godmode == true then
- idtoplay = string.gsub(lower,"/e :mplay ","")
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait(0.1)
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Remote:FireServer("PlaySong", idtoplay)
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == ":bringboom" then
- if godmode == true then
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == "/e bringboom" then
- if godmode == true then
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == "/e :bringboom" then
- if godmode == true then
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == ":boombring" then
- if godmode == true then
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == "/e boombring" then
- if godmode == true then
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == "/e :boombring" then
- if godmode == true then
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == ":dupeboom" then
- if godmode == true then
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait()
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Workspace.Terrain
- end
- end
- wait()
- for i = 1,3 do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
- wait(0.1)
- end
- bringboomsback = true
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == "/e dupeboom" then
- if godmode == true then
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait()
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Workspace.Terrain
- end
- end
- wait()
- for i = 1,3 do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
- wait(0.1)
- end
- bringboomsback = true
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == "/e :dupeboom" then
- if godmode == true then
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait()
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Workspace.Terrain
- end
- end
- wait()
- for i = 1,3 do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
- wait(0.1)
- end
- bringboomsback = true
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == "/e boombring" then
- if godmode == true then
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == "/e :boombring" then
- if godmode == true then
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- end
- end
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "Turn on God!";
- Text = "You need god mode on to do that!";
- Icon = "rbxassetid://1221422603";
- Duration = 5;
- Callback = godbindable;
- Button1 = "Turn on Godmode";
- })
- end
- end
- if lower == ":god" then
- godmode = true
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- end
- if lower == "/e god" then
- godmode = true
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- end
- if lowerf == "/e :god" then
- godmode = true
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- end
- if lower == ":ungod" then
- godmode = false
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- end
- if lower == "/e ungod" then
- godmode = false
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- end
- if lower == "/e :ungod" then
- godmode = false
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- end
- if lower == ":rejoin" then
- TeleportService:Teleport(455366377, game.Players.LocalPlayer)
- end
- if lower == "/e rejoin" then
- TeleportService:Teleport(455366377, game.Players.LocalPlayer)
- end
- if lower == "/e :rejoin" then
- TeleportService:Teleport(455366377, game.Players.LocalPlayer)
- end
- if string.find(lower,":deseat") then
- deseat(game.Workspace)
- end
- if string.find(lower,"/e deseat") then
- deseat(game.Workspace)
- end
- if string.find(lower,"/e :deseat") then
- deseat(game.Workspace)
- end
- if lower == ":unmutable" or lower == "/e unmutable" or lower == "/e :unmutable" then
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- wait()
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Parent = game.Workspace.Terrain
- end
- end
- wait()
- for i = 1,3 do
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
- wait(0.1)
- end
- bringboomsback = true
- if game.Players.LocalPlayer.Character ~= nil then
- game.Players.LocalPlayer.Character:BreakJoints()
- end
- repeat wait() until continueunmutable == true
- continueunmutable = false
- wait()
- for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if v:IsA("Tool") and v.Name == "BoomBox" and i == 2 then
- v.Parent = game.Players.LocalPlayer.Character
- repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild("BoomBox")
- end
- end
- wait(0.4)
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") and v.Name == "BoomBox" and v:FindFirstChild("Remote") then
- v.Remote:FireServer("PlaySong", "3456969984")
- wait(1.411)
- v.Parent = game.Players.LocalPlayer.Backpack
- end
- end
- game.StarterGui:SetCore("SendNotification", {
- Title = "Done!";
- Text = "Your boombox is unmutable now";
- Icon = "rbxassetid://847562022";
- Duration = 5;
- })
- end
- if string.find(lower,":visualize") then
- local firstspace = string.find(lower, " ")
- local toolnames = string.sub(lower, firstspace + 1, -1)
- if string.find(toolnames, " ") and not godmode then
- promptgod()
- return
- end
- visualize = false
- for i = 1,#visualizetools do
- table.remove(visualizetools, 1)
- end
- if game.Players.LocalPlayer.Character ~= nil then
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end
- wait()
- local mode = string.sub(string.gsub(lower, ":visualize", ""), 1, 1)
- if string.sub(mode, 1, 1) == " " then
- -- Nothing needs to be done
- elseif string.match(mode, "%d") then
- local secondplace = string.sub(string.gsub(lower, ":visualize", ""), 2, 2)
- if string.match(secondplace, "%d") then
- local doubledigit = string.sub(string.gsub(lower, ":visualize", ""), 0, 2)
- visualizemode = tonumber(doubledigit)
- else
- visualizemode = tonumber(mode)
- end
- end
- while wait() do
- if string.sub(toolnames, 1, 1) == " " then
- break
- end
- if string.find(toolnames, " ") then
- local space = string.find(toolnames, " ")
- local toolname = string.sub(toolnames, 0, space - 1)
- toolnames = string.sub(toolnames, space + 1, -1)
- if string.lower(toolname) == "hats" then
- table.insert(visualizetools, #visualizetools + 1, "hat")
- else
- table.insert(visualizetools, #visualizetools + 1, toolname)
- end
- else
- local lasttoolname = string.sub(toolnames, 0, -1)
- if string.lower(lasttoolname) == "hats" then
- table.insert(visualizetools, #visualizetools + 1, "hat")
- break
- else
- table.insert(visualizetools, #visualizetools + 1, lasttoolname)
- break
- end
- end
- end
- visualize = true
- end
- if string.find(lower,"/e visualize") then
- local firstspace = string.find(lower, " ", 4)
- local toolnames = string.sub(lower, firstspace + 1, -1)
- if string.find(toolnames, " ") and not godmode then
- promptgod()
- return
- end
- visualize = false
- for i = 1,#visualizetools do
- table.remove(visualizetools, 1)
- end
- if game.Players.LocalPlayer.Character ~= nil then
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end
- wait()
- local mode = string.sub(string.gsub(lower, "/e visualize", ""), 1, 1)
- if string.sub(mode, 1, 1) == " " then
- -- Nothing needs to be done
- elseif string.match(mode, "%d") then
- local secondplace = string.sub(string.gsub(lower, "/e visualize", ""), 2, 2)
- if string.match(secondplace, "%d") then
- local doubledigit = string.sub(string.gsub(lower, "/e visualize", ""), 0, 2)
- visualizemode = tonumber(doubledigit)
- else
- visualizemode = tonumber(mode)
- end
- end
- while wait() do
- if string.sub(toolnames, 1, 1) == " " then
- break
- end
- if string.find(toolnames, " ") then
- local space = string.find(toolnames, " ")
- local toolname = string.sub(toolnames, 0, space - 1)
- toolnames = string.sub(toolnames, space + 1, -1)
- if string.lower(toolname) == "hats" then
- table.insert(visualizetools, #visualizetools + 1, "hat")
- else
- table.insert(visualizetools, #visualizetools + 1, toolname)
- end
- else
- local lasttoolname = string.sub(toolnames, 0, -1)
- if string.lower(lasttoolname) == "hats" then
- table.insert(visualizetools, #visualizetools + 1, "hat")
- break
- else
- table.insert(visualizetools, #visualizetools + 1, lasttoolname)
- break
- end
- end
- end
- visualize = true
- for i = 1,#visualizetools do
- end
- end
- if string.find(lower,"/e :visualize") then
- local firstspace = string.find(lower, " ", 4)
- local toolnames = string.sub(lower, firstspace + 1, -1)
- if string.find(toolnames, " ") and not godmode then
- promptgod()
- return
- end
- visualize = false
- for i = 1,#visualizetools do
- table.remove(visualizetools, 1)
- end
- if game.Players.LocalPlayer.Character ~= nil then
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end
- wait()
- local mode = string.sub(string.gsub(lower, "/e :visualize", ""), 1, 1)
- if string.sub(mode, 1, 1) == " " then
- -- Nothing needs to be done
- elseif string.match(mode, "%d") then
- local secondplace = string.sub(string.gsub(lower, "/e :visualize", ""), 2, 2)
- if string.match(secondplace, "%d") then
- local doubledigit = string.sub(string.gsub(lower, "/e :visualize", ""), 0, 2)
- visualizemode = tonumber(doubledigit)
- else
- visualizemode = tonumber(mode)
- end
- end
- while wait() do
- if string.sub(toolnames, 1, 1) == " " then
- break
- end
- if string.find(toolnames, " ") then
- local space = string.find(toolnames, " ")
- local toolname = string.sub(toolnames, 0, space - 1)
- toolnames = string.sub(toolnames, space + 1, -1)
- if string.lower(toolname) == "hats" then
- table.insert(visualizetools, #visualizetools + 1, "hat")
- else
- table.insert(visualizetools, #visualizetools + 1, toolname)
- end
- else
- local lasttoolname = string.sub(toolnames, 0, -1)
- if string.lower(lasttoolname) == "hats" then
- table.insert(visualizetools, #visualizetools + 1, "hat")
- break
- else
- table.insert(visualizetools, #visualizetools + 1, lasttoolname)
- break
- end
- end
- end
- visualize = true
- end
- if lower == ":unvisualize" then
- visualize = false
- for i = 1,#visualizetools do
- table.remove(visualizetools, i)
- end
- if game.Players.LocalPlayer.Character ~= nil then
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end
- end
- if lower == "/e unvisualize" then
- visualize = false
- for i = 1,#visualizetools do
- table.remove(visualizetools, i)
- end
- if game.Players.LocalPlayer.Character ~= nil then
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end
- end
- if lower == "/e :unvisualize" then
- visualize = false
- for i = 1,#visualizetools do
- table.remove(visualizetools, i)
- end
- if game.Players.LocalPlayer.Character ~= nil then
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end
- end
- if string.find(lower,":vismode ") then
- local input = string.gsub(lower, ":vismode ", "")
- if not string.match(input, "%a") then
- visualizemode = tonumber(input)
- end
- end
- if string.find(lower,"/e vismode ") then
- local input = string.gsub(lower, "/e vismode ", "")
- if not string.match(input, "%a") then
- visualizemode = tonumber(input)
- end
- end
- if string.find(lower,"/e :vismode ") then
- local input = string.gsub(lower, "/e :vismode ", "")
- if not string.match(input, "%a") then
- visualizemode = tonumber(input)
- end
- end
- end)
- game.Players.LocalPlayer.CharacterAppearanceLoaded:Connect(function(char)
- if bringboomsback == true then
- bringboomsback = false
- wait(0.5)
- for _,v in pairs(game.Workspace.Terrain:GetChildren()) do
- if (v:IsA("Tool") and v.Name == "BoomBox") then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild("BoomBox")
- end
- end
- continueunmutable = true
- end
- end)
- game:GetService('RunService').Stepped:connect(function()
- if godmode == true then
- if game.Players.LocalPlayer.Character ~= nil then
- if game.Players.LocalPlayer.Character:FindFirstChild("Right Leg") then
- game.Players.LocalPlayer.Character:FindFirstChild("Right Leg"):Destroy()
- end
- end
- end
- if visualize then
- if game.Players.LocalPlayer.Character ~= nil then
- if game.Players.LocalPlayer.Character:FindFirstChild("Torso") then
- if game.Players.LocalPlayer.Character.Torso:FindFirstChild("Song") then
- rot = rot + 2 + song.PlaybackLoudness/400
- local tools = gettools()
- for i,v in next, gettools() do
- sine = sine + 25
- v.Parent = game.Players.LocalPlayer.Backpack
- if visualizemode == 1 then
- 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)
- elseif visualizemode == 2 then
- 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)
- elseif visualizemode == 3 then
- 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)
- elseif visualizemode == 4 then
- 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)
- elseif visualizemode == 5 then
- 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)
- elseif visualizemode == 6 then
- 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)
- else
- visualizemode = 1
- end
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- end
- end
- end
- end)
- game.StarterGui:SetCore("SendNotification", {
- Title = "Done loading!";
- Text = "Commands by Aidez";
- Icon = "rbxassetid://847562022";
- Duration = 7;
- })
Add Comment
Please, Sign In to add comment