BINARYEXIT

Untitled

Jan 2nd, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 43.89 KB | None | 0 0
  1. wait(.2)
  2. whitelist = {game.Players.LocalPlayer.Name,"Fren1","Fren2"} -- put admin names here
  3. banlist = {"noob","noob2"} -- put noob names here
  4. deletepath = game.Players.LocalPlayer.Character:FindFirstChild("Delete")
  5. deletepath2 = game.Players.LocalPlayer.Backpack:FindFirstChild("Delete")
  6. slock = false
  7.  
  8. function newtag(plr)
  9. admintag = Instance.new("BoolValue")
  10.     admintag.Parent = game.Players[plr]
  11.     admintag.Value = true
  12.     admintag.Name = "admin"
  13.     print("created admin tag for " .. plr)
  14. end
  15.  
  16. newtag(game.Players.LocalPlayer.Name)
  17.  
  18. game.Players.LocalPlayer.ChildRemoved:connect(function(obj)
  19.     if obj.Name == "admin" then
  20.         newtag(game.Players.LocalPlayer.Name)
  21.     end
  22. end)    
  23.    
  24.             function adminexe(plr,msg)
  25.                 if plr:FindFirstChild("admin") then
  26.                
  27.             local lower = string.lower(msg)
  28.             local len = string.len(lower)
  29.            
  30.             if string.find(lower,":kick ") then
  31.                 local name = string.gsub(lower,":kick ","")
  32.                 local player = nil
  33.                
  34.                 if name == "others" then
  35.                         for i,v in pairs(game.Players:GetChildren()) do
  36.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  37.                                 game.Workspace.Delete.delete:FireServer(v)
  38.                             end
  39.                         end
  40.                 else
  41.                    
  42.                     names = game.Players:GetChildren()
  43.                                
  44.                             for i,v in pairs(names) do
  45.                                 strlower = string.lower(v.Name)
  46.                                 sub = string.sub(strlower,1,#name)                      
  47.                                
  48.                                 if name == sub then
  49.                                     player = v
  50.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  51.                                     game.Workspace.Delete.delete:FireServer(player)
  52.                                     end
  53.                                 end
  54.                             end
  55.                 end
  56.                 end
  57.  
  58.  
  59.     if string.find(lower,"/e :kick ") then
  60.                 local name = string.gsub(lower,"/e :kick ","")
  61.                 local player = nil
  62.                
  63.                 if name == "others" then
  64.                         for i,v in pairs(game.Players:GetChildren()) do
  65.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  66.                                 game.Workspace.Delete.delete:FireServer(v)
  67.                             end
  68.                         end
  69.                 else
  70.                    
  71.                     names = game.Players:GetChildren()
  72.                                
  73.                             for i,v in pairs(names) do
  74.                                 strlower = string.lower(v.Name)
  75.                                 sub = string.sub(strlower,1,#name)                      
  76.                                
  77.                                 if name == sub then
  78.                                     player = v
  79.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  80.                                     game.Workspace.Delete.delete:FireServer(player)
  81.                                     end
  82.                                 end
  83.                             end
  84.                 end
  85.                 end
  86.  
  87.     if string.find(lower,"/e kick ") then
  88.                 local name = string.gsub(lower,"/e kick ","")
  89.                 local player = nil
  90.                
  91.                 if name == "others" then
  92.                         for i,v in pairs(game.Players:GetChildren()) do
  93.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  94.                                 game.Workspace.Delete.delete:FireServer(v)
  95.                             end
  96.                         end
  97.                 else
  98.                    
  99.                     names = game.Players:GetChildren()
  100.                                
  101.                             for i,v in pairs(names) do
  102.                                 strlower = string.lower(v.Name)
  103.                                 sub = string.sub(strlower,1,#name)                      
  104.                                
  105.                                 if name == sub then
  106.                                     player = v
  107.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  108.                                     game.Workspace.Delete.delete:FireServer(player)
  109.                                     end
  110.                                 end
  111.                             end
  112.                 end
  113.                 end
  114.  
  115.                 if string.find(lower,"heck ") then
  116.                 local name = string.gsub(lower,"heck ","")
  117.                 local player = nil
  118.                
  119.                 if name == "others" then
  120.                         for i,v in pairs(game.Players:GetChildren()) do
  121.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  122.                                 game.Workspace.Delete.delete:FireServer(v.Character)
  123.                             end
  124.                         end
  125.                 else
  126.                    
  127.                     names = game.Players:GetChildren()
  128.                                
  129.                             for i,v in pairs(names) do
  130.                                 strlower = string.lower(v.Name)
  131.                                 sub = string.sub(strlower,1,#name)                      
  132.                                
  133.                                 if name == sub then
  134.                                     player = v
  135.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  136.                                     game.Workspace.Delete.delete:FireServer(player.Character)  
  137.                                     end
  138.                                 end
  139.                             end
  140.                 end
  141.                 end
  142.  
  143.         if string.find(lower,":heck ") then
  144.                 local name = string.gsub(lower,":heck ","")
  145.                 local player = nil
  146.                
  147.                 if name == "others" then
  148.                         for i,v in pairs(game.Players:GetChildren()) do
  149.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  150.                                 game.Workspace.Delete.delete:FireServer(v.Character)
  151.                             end
  152.                         end
  153.                 else
  154.                    
  155.                     names = game.Players:GetChildren()
  156.                                
  157.                             for i,v in pairs(names) do
  158.                                 strlower = string.lower(v.Name)
  159.                                 sub = string.sub(strlower,1,#name)                      
  160.                                
  161.                                 if name == sub then
  162.                                     player = v
  163.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  164.                                     game.Workspace.Delete.delete:FireServer(player.Character)  
  165.                                     end
  166.                                 end
  167.                             end
  168.                 end
  169.                 end
  170.  
  171.         if string.find(lower,"/e heck ") then
  172.                 local name = string.gsub(lower,"/e heck ","")
  173.                 local player = nil
  174.                
  175.                 if name == "others" then
  176.                         for i,v in pairs(game.Players:GetChildren()) do
  177.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  178.                                 game.Workspace.Delete.delete:FireServer(v.Character)
  179.                             end
  180.                         end
  181.                 else
  182.                    
  183.                     names = game.Players:GetChildren()
  184.                                
  185.                             for i,v in pairs(names) do
  186.                                 strlower = string.lower(v.Name)
  187.                                 sub = string.sub(strlower,1,#name)                      
  188.                                
  189.                                 if name == sub then
  190.                                     player = v
  191.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  192.                                     game.Workspace.Delete.delete:FireServer(player.Character)  
  193.                                     end
  194.                                 end
  195.                             end
  196.                 end
  197.                 end
  198.  
  199.         if string.find(lower,"/e :heck ") then
  200.                 local name = string.gsub(lower,"/e :heck ","")
  201.                 local player = nil
  202.                
  203.                 if name == "others" then
  204.                         for i,v in pairs(game.Players:GetChildren()) do
  205.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  206.                                 game.Workspace.Delete.delete:FireServer(v.Character)
  207.                             end
  208.                         end
  209.                 else
  210.                    
  211.                     names = game.Players:GetChildren()
  212.                                
  213.                             for i,v in pairs(names) do
  214.                                 strlower = string.lower(v.Name)
  215.                                 sub = string.sub(strlower,1,#name)                      
  216.                                
  217.                                 if name == sub then
  218.                                     player = v
  219.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  220.                                     game.Workspace.Delete.delete:FireServer(player.Character)  
  221.                                     end
  222.                                 end
  223.                             end
  224.                 end
  225.                 end
  226.  
  227.                 if string.find(lower,"frick ") then
  228.                 local name = string.gsub(lower,"frick ","")
  229.                 local player = nil
  230.                
  231.                 if name == "others" then
  232.                         for i,v in pairs(game.Players:GetChildren()) do
  233.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  234.                                 game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  235.                                 game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  236.                             end
  237.                         end
  238.                 else
  239.                    
  240.                     names = game.Players:GetChildren()
  241.                                
  242.                             for i,v in pairs(names) do
  243.                                 strlower = string.lower(v.Name)
  244.                                 sub = string.sub(strlower,1,#name)                      
  245.                                
  246.                                 if name == sub then
  247.                                     player = v
  248.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  249.                                     game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  250.                                     game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)  
  251.                                     end
  252.                                 end
  253.                             end
  254.                 end
  255.                 end
  256.  
  257.                 if string.find(lower,":frick ") then
  258.                 local name = string.gsub(lower,":frick ","")
  259.                 local player = nil
  260.                
  261.                 if name == "others" then
  262.                         for i,v in pairs(game.Players:GetChildren()) do
  263.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  264.                                 game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  265.                                 game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  266.                             end
  267.                         end
  268.                 else
  269.                    
  270.                     names = game.Players:GetChildren()
  271.                                
  272.                             for i,v in pairs(names) do
  273.                                 strlower = string.lower(v.Name)
  274.                                 sub = string.sub(strlower,1,#name)                      
  275.                                
  276.                                 if name == sub then
  277.                                     player = v
  278.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  279.                                     game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  280.                                     game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)  
  281.                                     end
  282.                                 end
  283.                             end
  284.                 end
  285.                 end
  286.  
  287.                 if string.find(lower,"/e frick ") then
  288.                 local name = string.gsub(lower,"/e frick ","")
  289.                 local player = nil
  290.                
  291.                 if name == "others" then
  292.                         for i,v in pairs(game.Players:GetChildren()) do
  293.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  294.                                 game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  295.                                 game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  296.                             end
  297.                         end
  298.                 else
  299.                    
  300.                     names = game.Players:GetChildren()
  301.                                
  302.                             for i,v in pairs(names) do
  303.                                 strlower = string.lower(v.Name)
  304.                                 sub = string.sub(strlower,1,#name)                      
  305.                                
  306.                                 if name == sub then
  307.                                     player = v
  308.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  309.                                     game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  310.                                     game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)  
  311.                                     end
  312.                                 end
  313.                             end
  314.                 end
  315.                 end
  316.  
  317.                 if string.find(lower,"/e :frick ") then
  318.                 local name = string.gsub(lower,"/e :frick ","")
  319.                 local player = nil
  320.                
  321.                 if name == "others" then
  322.                         for i,v in pairs(game.Players:GetChildren()) do
  323.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  324.                                 game.Workspace.Delete.delete:FireServer(v.Character.Torso.Neck)
  325.                                 game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)
  326.                             end
  327.                         end
  328.                 else
  329.                    
  330.                     names = game.Players:GetChildren()
  331.                                
  332.                             for i,v in pairs(names) do
  333.                                 strlower = string.lower(v.Name)
  334.                                 sub = string.sub(strlower,1,#name)                      
  335.                                
  336.                                 if name == sub then
  337.                                     player = v
  338.                                     if player.Name ~= game.Players.LocalPlayer.Name then
  339.                                     game.Workspace.Delete.delete:FireServer(player.Character.Torso.Neck)
  340.                                     game.Workspace.Delete.delete:FireServer(v.Character.Head.Neck)  
  341.                                     end
  342.                                 end
  343.                             end
  344.                 end
  345.                 end
  346.            
  347.             if string.find(lower,":ban ") then
  348.                 local name = string.gsub(lower,":ban ","")
  349.                 local player = nil
  350.                 local plrname = nil
  351.                
  352.                 if name == "others" then
  353.                         for i,v in pairs(game.Players:GetChildren()) do
  354.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  355.                                 plrname = v.Name
  356.                                 table.insert(banlist,(#banlist+1),plrname)
  357.                                 game.Workspace.Delete.delete:FireServer(v)
  358.                             end
  359.                         end
  360.                 else
  361.                
  362.                 names = game.Players:GetChildren()
  363.                                
  364.                         for i,v in pairs(names) do
  365.                             strlower = string.lower(v.Name)
  366.                             sub = string.sub(strlower,1,#name)
  367.                                
  368.                             if name == sub then
  369.                                 plrname = v.Name
  370.                                 player = v
  371.  
  372.                                 if player.Name ~= game.Players.LocalPlayer.Name then
  373.                                 table.insert(banlist,(#banlist+1),plrname)
  374.                                 game.Workspace.Delete.delete:FireServer(player)
  375.                                 end
  376.                             end
  377.                            
  378.                         end
  379.                        
  380.                        
  381.                 end
  382.                 end
  383.  
  384.             if string.find(lower,"/e ban ") then
  385.                 local name = string.gsub(lower,"/e ban ","")
  386.                 local player = nil
  387.                 local plrname = nil
  388.                
  389.                 if name == "others" then
  390.                         for i,v in pairs(game.Players:GetChildren()) do
  391.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  392.                                 plrname = v.Name
  393.                                 table.insert(banlist,(#banlist+1),plrname)
  394.                                 game.Workspace.Delete.delete:FireServer(v)
  395.                             end
  396.                         end
  397.                 else
  398.                
  399.                 names = game.Players:GetChildren()
  400.                                
  401.                         for i,v in pairs(names) do
  402.                             strlower = string.lower(v.Name)
  403.                             sub = string.sub(strlower,1,#name)
  404.                                
  405.                             if name == sub then
  406.                                 plrname = v.Name
  407.                                 player = v
  408.  
  409.                                 if player.Name ~= game.Players.LocalPlayer.Name then
  410.                                 table.insert(banlist,(#banlist+1),plrname)
  411.                                 game.Workspace.Delete.delete:FireServer(player)
  412.                                 end
  413.                             end
  414.                            
  415.                         end
  416.                        
  417.                        
  418.                 end
  419.                 end
  420.  
  421.             if string.find(lower,"/e :ban ") then
  422.                 local name = string.gsub(lower,"/e :ban ","")
  423.                 local player = nil
  424.                 local plrname = nil
  425.                
  426.                 if name == "others" then
  427.                         for i,v in pairs(game.Players:GetChildren()) do
  428.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  429.                                 plrname = v.Name
  430.                                 table.insert(banlist,(#banlist+1),plrname)
  431.                                 game.Workspace.Delete.delete:FireServer(v)
  432.                             end
  433.                         end
  434.                 else
  435.                
  436.                 names = game.Players:GetChildren()
  437.                                
  438.                         for i,v in pairs(names) do
  439.                             strlower = string.lower(v.Name)
  440.                             sub = string.sub(strlower,1,#name)
  441.                                
  442.                             if name == sub then
  443.                                 plrname = v.Name
  444.                                 player = v
  445.  
  446.                                 if player.Name ~= game.Players.LocalPlayer.Name then
  447.                                 table.insert(banlist,(#banlist+1),plrname)
  448.                                 game.Workspace.Delete.delete:FireServer(player)
  449.                                 end
  450.                             end
  451.                            
  452.                         end
  453.                        
  454.                        
  455.                 end
  456.                 end
  457.                
  458.             if string.find(lower,":unban ") then
  459.                 local name = string.gsub(lower,":unban ","")
  460.                 local player = nil      
  461.                 local plrname = nil
  462.                 local index = nil
  463.                
  464.                 if name == "all" then
  465.                    
  466.                     for i,v in pairs(banlist) do
  467.                         table.remove(banlist,i)
  468.                     end
  469.                    
  470.                 else
  471.                     names = banlist
  472.                                
  473.                         for i,v in pairs(names) do
  474.                             strlower = string.lower(v)
  475.                             sub = string.sub(strlower,1,#name)
  476.                                
  477.                             if name == sub then
  478.                                  table.remove(banlist,i)
  479.                             end
  480.                         end
  481.                 end
  482.                 end
  483.            
  484.             if lower == ":bans" then
  485.                 print("-------------------------")
  486.                
  487.                 for i,v in pairs(banlist) do
  488.                     print("Ban #" .. i .. " Player: " .. v)
  489.                 end
  490.                
  491.                 print("-------------------------")
  492.             end
  493.            
  494.             if lower == ":obby" then
  495.                 if game.Workspace.Terrain.GameFolder.Workspace.Obby then
  496.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Obby)
  497.                 end
  498.             end
  499.  
  500.             if lower == ":removeobby" then
  501.                 if game.Workspace.Terrain.GameFolder.Workspace.Obby then
  502.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Obby)
  503.                 end
  504.             end
  505.            
  506.             if lower == ":givers" then
  507.                 if game.Workspace.Terrain.GameFolder.Admin then
  508.                 local dividers = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  509.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  510.                     game.Workspace.Delete.delete:FireServer(dividers)
  511.                 end
  512.             end
  513.            
  514.             if lower == ":removegivers" then
  515.                 if game.Workspace.Terrain.GameFolder.Admin then
  516.                 local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  517.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  518.                     game.Workspace.Delete.delete:FireServer(dividers2)
  519.                 end
  520.             end
  521.  
  522.             if lower == ":removepads" then
  523.                 if game.Workspace.Terrain.GameFolder.Admin then
  524.                 local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  525.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  526.                     game.Workspace.Delete.delete:FireServer(dividers2)
  527.                 end
  528.             end
  529.  
  530.                 if lower == ":pads" then
  531.                 if game.Workspace.Terrain.GameFolder.Admin then
  532.                 local dividers2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Admin Dividers")
  533.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Pads)
  534.                     game.Workspace.Delete.delete:FireServer(dividers2)
  535.                 end
  536.             end
  537.         if lower == ":roof" then
  538.                 if game.Workspace.Terrain.GameFolder.Admin then
  539.                
  540.                     epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  541.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  542.                 end
  543.             end
  544.         if lower == ":darkness" then
  545.                 if game.Workspace.Terrain.GameFolder.Admin then
  546.                
  547.                     epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  548.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  549.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  550.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  551.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  552.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  553.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  554.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  555.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  556.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  557.             epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  558.         --EFFECIENCY AT IT'S FINEST
  559.                 end
  560.             end
  561.  
  562.         if lower == ":clonebaseplate" then
  563.                 if game.Workspace.Terrain.GameFolder.Admin then
  564.                 epic = game.Players.Vortexturize.Backpack:FindFirstChild("Clone")
  565.         epic.create:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate, Vector3.new(-85, 10, 17), Vector3.new(180, 90, 0))
  566.                 end
  567.             end
  568.  
  569.                 if lower == ":regen" then
  570.                 if game.Workspace.Terrain.GameFolder.Admin then
  571.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Regen)
  572.                 end
  573.             end
  574.             if lower == ":removeregen" then
  575.                 if game.Workspace.Terrain.GameFolder.Admin then
  576.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin.Regen)
  577.                 end
  578.             end
  579.            
  580.             if lower == "clear" then
  581.                 for i,v in pairs(game.Workspace:GetChildren()) do
  582.                     if v:IsA("Part") then
  583.                         game.Workspace.Delete.delete:FireServer(v)
  584.                     end
  585.                 end
  586.             end
  587.            
  588.             if lower == ":slock on" then
  589.                 slock = true
  590.             end
  591.  
  592.             if lower == "/e :slock on" then
  593.                 slock = true
  594.             end
  595.  
  596.             if lower == "/e slock on" then
  597.                 slock = true
  598.             end
  599.            
  600.             if lower == ":slock off" then
  601.                 slock = false
  602.             end
  603.  
  604.             if lower == "/e :slock off" then
  605.                 slock = false
  606.             end
  607.  
  608.             if lower == "/e slock off" then
  609.                 slock = false
  610.             end
  611.            
  612.             if string.find(lower,":wl ") then
  613.                 local name = string.gsub(lower,":wl ","")
  614.                 local player = nil
  615.                 local plrname = nil
  616.                
  617.                 if name == "others" then
  618.                         for i,v in pairs(game.Players:GetChildren()) do
  619.                             if (not v:FindFirstChild("admin")) and v.Name ~= game.Players.LocalPlayer.Name then
  620.                                 table.insert(whitelist,(#whitelist+1),v.Name)
  621.                                 newtag(v.Name)
  622.                                
  623.                                 v.Chatted:connect(function(msg)
  624.                                     adminexe(v,msg)
  625.                                 end)
  626.                             end
  627.                         end
  628.                 else
  629.                    
  630.                 names = game.Players:GetChildren()
  631.                                
  632.                             for i,v in pairs(names) do
  633.                                 strlower = string.lower(v.Name)
  634.                                 sub = string.sub(strlower,1,#name)
  635.                                
  636.                                 if name == sub then
  637.                                     newtag(v.Name)
  638.                                     table.insert(whitelist,(#whitelist+1),v.Name)  
  639.                                    
  640.                                     v.Chatted:connect(function(msg)
  641.                                         adminexe(v,msg)
  642.                                     end)
  643.                                 end
  644.                             end
  645.                 end
  646.                 end
  647.            
  648.             if string.find(lower,":unwl ") then
  649.                 local name = string.gsub(lower,":unwl ","")
  650.                 local player = nil
  651.                 local plrname = nil
  652.                 local index = nil
  653.                
  654.                 if name == "others" then
  655.                         for i,v in pairs(whitelist) do
  656.                                 for i,v in pairs(banlist) do
  657.                                     if v ~= game.Players.LocalPlayer.Name then
  658.                                     table.remove(whitelist,i)
  659.                                     end
  660.                                 end
  661.                                
  662.                                 if game.Workspace:FindFirstChild(v) then
  663.                                    
  664.                                     if v.Name ~= game.Players.LocalPlayer.Name then
  665.                                 if v:FindFirstChild("admin") then
  666.                                     v.admin:Destroy()
  667.                                 end
  668.                                 end
  669.                                 end
  670.                             end
  671.                 else
  672.                 names = whitelist
  673.                                
  674.                         for i,v in pairs(names) do
  675.                             strlower = string.lower(v)
  676.                             sub = string.sub(strlower,1,#name)
  677.                                
  678.                             if name == sub then
  679.                                  table.remove(whitelist,i)
  680.                             end
  681.                         end
  682.                 end
  683.                 end
  684.            
  685.             if lower == ":wls" then
  686.                 for i,v in pairs(whitelist) do
  687.                     print("Player #" .. i .. " Player: " .. v)
  688.                 end
  689.             end
  690.          
  691.             if lower == ":ruin" then
  692.                 house2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Simple House")
  693.                 house = house2:GetChildren()
  694.                 for i=1,#house,3 do
  695.                     game.Workspace.Delete.delete:FireServer(house[i])
  696. end
  697.  
  698.             end
  699.  
  700.             if lower == ":barriers" then
  701.                 if game.Workspace.Terrain.GameFolder.Workspace then
  702.                     epicheskiy = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Obby Box")
  703.                     game.Workspace.Delete.delete:FireServer(epicheskiy)
  704.                 end
  705.             end
  706.  
  707.             if lower == ":removebarriers" then
  708.                 if game.Workspace.Terrain.GameFolder.Workspace then
  709.                     epicheskiy = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Obby Box")
  710.                     game.Workspace.Delete.delete:FireServer(epicheskiy)
  711.                 end
  712.             end
  713.  
  714.             if lower == ":baseplate" then
  715.                 if game.Workspace.Terrain.GameFolder.Workspace.Baseplate then
  716.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate)
  717.                 end
  718.             end
  719.  
  720.         if lower == ":tohouse" then
  721.                 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-33.2027435, 8.22999954, 82.6940842))
  722.             end
  723.         if lower == ":gotohouse" then
  724.                 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(-33.2027435, 8.22999954, 82.6940842))
  725.             end
  726.  
  727.             if lower == ":removebaseplate" then
  728.                 if game.Workspace.Terrain.GameFolder.Workspace.Baseplate then
  729.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace.Baseplate)
  730.                 end
  731.             end
  732.  
  733.             if lower == ":removehouse" then
  734.                 if game.Workspace.Terrain.GameFolder.Workspace then
  735.                     epicheskiy2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Basic House")
  736.                     game.Workspace.Delete.delete:FireServer(epicheskiy2)
  737.                 end
  738.             end
  739.             if lower == ":house" then
  740.                 if game.Workspace.Terrain.GameFolder.Workspace then
  741.                     epicheskiy2 = game.Workspace.Terrain.GameFolder.Workspace:FindFirstChild("Basic House")
  742.                     game.Workspace.Delete.delete:FireServer(epicheskiy2)
  743.                 end
  744.             end
  745.     if lower == ":unlock" then
  746.                    local function unlock(instance)
  747.         for i,v in pairs(instance:GetChildren()) do
  748.             if v:IsA("BasePart") then
  749.                 v.Locked = false
  750.             end
  751.             unlock(v)
  752.         end
  753.     end
  754.     unlock(workspace)
  755.             end
  756.  
  757.     if lower == "/e unlock" then
  758.                    local function unlock(instance)
  759.         for i,v in pairs(instance:GetChildren()) do
  760.             if v:IsA("BasePart") then
  761.                 v.Locked = false
  762.             end
  763.             unlock(v)
  764.         end
  765.     end
  766.     unlock(workspace)
  767.             end
  768.  
  769.     if lower == "/e :unlock" then
  770.                    local function unlock(instance)
  771.         for i,v in pairs(instance:GetChildren()) do
  772.             if v:IsA("BasePart") then
  773.                 v.Locked = false
  774.             end
  775.             unlock(v)
  776.         end
  777.     end
  778.     unlock(workspace)
  779.             end
  780.    
  781.             if lower == ":breakgame" then
  782.                 if game.Workspace.Terrain then
  783.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace)
  784.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin)
  785.                 end
  786.             end
  787.  
  788.             if lower == ":endme" then
  789.                 if game.Players.LocalPlayer then
  790.                     game.Workspace.Delete.delete:FireServer(game.Players.LocalPlayer)
  791.                 end
  792.             end
  793.  
  794.             if lower == ":removegame" then
  795.                 if game.Workspace.Terrain then
  796.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Workspace)
  797.                     game.Workspace.Delete.delete:FireServer(game.Workspace.Terrain.GameFolder.Admin)
  798.                 end
  799.             end
  800.            
  801.             if lower == ":clear" then
  802.                 for i,v in pairs(game.Workspace:GetChildren()) do
  803.                     if not v:IsA("Model") or not v:IsA("Camera") or not v:IsA("Terrain") then
  804.                         game.Workspace.Delete.delete:FireServer(v)
  805.                     end
  806.                 end
  807.             end
  808.            
  809.             if string.find(lower,":cmds") then
  810.  
  811.         game.StarterGui:SetCore("ChatMakeSystemMessage", {
  812.                 Text = "Check the developer console for a list of  additional commands. (F9 or Shift + F9)";
  813.                 Color = Color3.new(127, 0, 0);
  814.                 Font = Enum.Font.SourceSansBold;
  815.                 FontSize = Enum.FontSize.Size24;
  816.             })
  817.  
  818.  
  819.                 print("----------------COMMANDS-------------------")
  820.                 print("Selection options: Full Player Name, Abrreviated, Others")
  821.                 print('Example: ":ban others"')
  822.                 print()
  823.                 print(":cmds - I wonder what this does.")
  824.                 print(":ban - Prevents user from rejoining the server. (/e :ban and /e ban work)")
  825.                 print(":unban -can use :unban all")
  826.                 print(":bans - Shows bans in console")
  827.                 print(":slock on - Turns serverlock on")
  828.                 print(":slock off - Turns server lock off")
  829.                 print(":kick - Removes player from the game (/e :kick and /e kick work)")
  830.                 print(":wl - Whitelists the player (Can use commands, not on you though.)")
  831.                 print(":unwl - Unwhitelists the player")
  832.                 print(":wls -outputs whitelisted players to console (F9)")
  833.                 print(":obby - Removes obby at the start. (removeobby also works.)")
  834.                 print(":givers - Removes admin givers. (:removegivers :removepads and :pads also all work.)")
  835.                 print(":clear --removes parts placed by players (Re-do the script after you run this. Also, use the respawn command to get unstuck.)")
  836.                 print(":removehouse - removes house")
  837.                 print(":baseplate - Removes baseplate. (:removebaseplate also works.)")
  838.                 print(":regen - Removes baseplate. (:removeregen also works.)")
  839.                 print(":barriers - Removes barriers around spawn (:removebarriers also works.)")
  840.                 print(":breakgame - Breaks everything. (:removegame also works incase you got used to the remove commands.)")
  841.                 print(":frick - Kills the player (Doing it without the : yields the same results)")
  842.                 print(":heck - Deletes the player's character (Doing it without the : yields the same results)")
  843.                 print(":roof - Clones the baseplate over the map")
  844.                 print(":darkness - Clones multiple baseplates over the map (Casting a shadow on the map)")
  845.                 print(":unlock - Allows you to use your btools on any part in the game (/e unlock and /e :unlock work)")
  846.         print(":gotohouse - Teleports you into the house")
  847.                 print()
  848.                 print('Executing "kick others/etc." wont kick those whitelisted, but if you single them out it will')
  849.                 print('If a user is whitelisted he/she will not be able to see commands on their screen with :cmds,')
  850.                 print('and the same goes for :bans and :wls, since the game is filtering enabled, however they will')
  851.                 print('be able to use commands if whitelisted')
  852.                 print('You can not be unwhitelisted or banned / kicked')
  853.                 print("If someone uses the clear / clr command, you must re-apply the script.")
  854.                 print("Most commands that effect players can be used silently. (Example /e :kick and /e kick would both work)")
  855.                 print("-------------------------------------------")
  856.                 print("Made by Timeless. (Updated by Vortex)")
  857.                 print("-------------------------------------------")
  858.            
  859.                
  860.             end
  861.             end
  862.             end
  863.  
  864. game.Players.LocalPlayer.Chatted:connect(function(msg)
  865.     adminexe(game.Players.LocalPlayer,msg)
  866. end)
  867.  
  868. if deletepath then
  869.     game.Players.LocalPlayer.Character.Delete.CanBeDropped = true
  870.    
  871.     drop = Instance.new("BillboardGui")
  872.     drop.Parent = game.Players.LocalPlayer.PlayerGui
  873.    
  874.     droplbl = Instance.new("TextLabel")
  875.     droplbl.Parent = drop
  876.     droplbl.Text = "Drop the delete tool to initialize commands"
  877.     droplbl.BackgroundTransparency = 1
  878.     droplbl.TextColor3 = Color3.new(200,0,0)
  879.     droplbl.TextScaled = true
  880.     droplbl.Size = UDim2.new(0,150,0,30)
  881.     droplbl.Position = UDim2.new(0,400,0,400)
  882.    
  883.     wait(2)
  884.    
  885.     drop:Destroy()
  886. end
  887.  
  888. if deletepath2 then
  889.     game.Players.LocalPlayer.Backpack.Delete.CanBeDropped = true
  890.    
  891.     drop = Instance.new("BillboardGui")
  892.     drop.Parent = game.Players.LocalPlayer.PlayerGui
  893.    
  894.     droplbl = Instance.new("TextLabel")
  895.     droplbl.Parent = drop
  896.     droplbl.Text = "Drop the delete tool to initialize commands"
  897.     droplbl.BackgroundTransparency = 1
  898.     droplbl.TextColor3 = Color3.new(200,0,0)
  899.     droplbl.TextScaled = true
  900.     droplbl.Size = UDim2.new(0,150,0,30)
  901.     droplbl.Position = UDim2.new(0,400,0,400)
  902.    
  903.     wait(2)
  904.    
  905.     drop:Destroy()
  906. end
  907.  
  908. game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(tool)
  909.     if tool.Name == "Delete" then
  910.         wait(.1)
  911.         tool.CanBeDropped = true
  912.        
  913.         drop = Instance.new("BillboardGui")
  914.     drop.Parent = game.Players.LocalPlayer.PlayerGui
  915.    
  916.     droplbl = Instance.new("TextLabel")
  917.     droplbl.Text = "Drop the delete tool to initialize commands"
  918.     droplbl.BackgroundTransparency = 1
  919.     droplbl.Parent = drop
  920.     droplbl.TextColor3 = Color3.new(200,0,0)
  921.     droplbl.TextScaled = true
  922.     droplbl.Size = UDim2.new(0,150,0,30)
  923.     droplbl.Position = UDim2.new(0,400,0,400)
  924.    
  925.     wait(2)
  926.    
  927.     drop:Destroy()
  928.     end
  929. end)
  930.  
  931.     function start(plr)
  932.        
  933.     local found = false
  934.     local banned = false
  935.    
  936.     for i=1,#whitelist do
  937.         if plr.Name == (whitelist[i]) then
  938.             found = true
  939.         end
  940.     end
  941.  
  942.         for i=1,#banlist do
  943.               if plr.Name == banlist[i] then
  944.             banned = true  
  945. end
  946.  
  947.     if banned == true then
  948.         game.Workspace.Delete.delete:FireServer(plr)
  949.     end
  950. end
  951.     if found == false and slock == true then
  952.         game.Workspace.Delete.delete:FireServer(plr)
  953.     end
  954.    
  955.     if found == true then
  956.         newtag(plr.Name)
  957.         plr.Chatted:connect(function(msg)
  958.             adminexe(plr,msg)
  959.         end)
  960.     end
  961.         end
  962. game.Players.PlayerAdded:connect(function(plr)
  963.     start(plr)
  964. end)
  965.  
  966.  
  967.  
  968.     game.StarterGui:SetCore("ChatMakeSystemMessage", {
  969.         Text = "Say :cmds for further instructions on how to access additional commands.";
  970.         Color = Color3.new(127, 0, 0);
  971.         Font = Enum.Font.SourceSansBold;
  972.         FontSize = Enum.FontSize.Size24;
  973.         })
  974.     game.StarterGui:SetCore("ChatMakeSystemMessage", {
  975.         Text = "Drop the hammer tool to get access to the extra commands. (Make sure to inject after giving yourself btools)";
  976.         Color = Color3.new(0, 0, 127);
  977.         Font = Enum.Font.SourceSansBold;
  978.         FontSize = Enum.FontSize.Size24;
  979.         })
  980.     game.StarterGui:SetCore("ChatMakeSystemMessage", {
  981.         Text = "If someone uses the clear / clr command, you'll have to re-apply the script.";
  982.         Color = Color3.new(0, 127, 0);
  983.         Font = Enum.Font.SourceSansBold;
  984.         FontSize = Enum.FontSize.Size24;
  985.         })
Add Comment
Please, Sign In to add comment