Advertisement
iiHackerii

Untitled

Oct 12th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local MAIN;
  2. start=time();
  3.  
  4. for _,v in pairs(script:children'') do
  5.      ypcall(function() v.Name = "\n"; end);
  6. end
  7.  
  8. MAIN = {
  9.     ['Tabs']={};
  10.     ['Cmds']={};
  11.     ['Ranked']={
  12.          {['Name'] = 'PeroxDevelopment', ['Rank'] = 7, ['Reason'] = 'Creator', ['Color'] = 'Toothpaste'};
  13.          {['Name'] = 'TheOfficalNoob4788', ['Rank'] = 5, ['Reason'] = 'BestFirend. :D', ['Color'] = 'Deep orange'};
  14.          {['Name'] = 'supersonicfan111', ['Rank'] = 4, ['Reason'] = 'Pretty good friend.', ['Color'] = 'New Yeller'};
  15.         {["Name"] = "BanTester", ["Rank"] = -1, ["BanReason"] = "becuztest.", ["Color"] = "Really black"};
  16.         {["Name"] = "xXAwesomekillerzXx", ["Rank"] = 2, ["Reason"] = "Good guy! but kind of use leak scripts", ["Color"] = "Really red"};
  17.         {["Name"] = "DigitalZer3", ["Rank"] = 2, ["Reason"] = "Good guy.", ["Color"] = "New Yeller"};
  18.         {["Name"] = "fireblader16", ["Rank"] = 4, ["Reason"] = "Good guy! Teaching him how to make tabs.", ["Color"] = "Royal purple"};
  19.     };
  20.     ['Ranks']={
  21.          [7] = "Creator";
  22.          [6] = "Leader";
  23.          [5] = "Mod";
  24.          [4] = "Scripter";
  25.          [3] = "Beta-Tester";
  26.          [2] = "Member";
  27.          [1] = "Player";
  28.     };
  29.     ['Banned']={
  30.           {["Name"] = "BanTester", ["Rank"] = -1, ["BanReason"] = "becuztest.", ["Color"] = "Really black"};
  31.     };
  32.     Rotation = 0;
  33.     Colors={
  34.         White=BrickColor.new'White'.Color;
  35.                         Black=BrickColor.new'Black'.Color;
  36.                         Pink=BrickColor.new'Hot pink'.Color;
  37.                         Red=BrickColor.new'Really red'.Color;
  38.                         Blue=BrickColor.new'Really blue'.Color;
  39.                         Green=BrickColor.new'Lime green'.Color;
  40.                         Yellow=BrickColor.new'New Yeller'.Color;
  41.                         Orange=BrickColor.new'Flame yellowish orange'.Color;
  42.     };
  43.     ['Functions']={};
  44.     ['PriServ'] = false;
  45.     ['ListPriPeople']={
  46.           'PeorxDevelopment';
  47.     };
  48.     Bet = '/';
  49. }
  50.  
  51. function MAIN.Functions.SetRank(plr, rank)
  52.          if type(plr) == "userdata" then plr = plr.Name;
  53.      elseif type(plr) == "stirng" then plr = plr;
  54.     else
  55.         plr = tostring(plr)
  56.     end
  57.     for i,v in next,MAIN.Ranked do
  58.          if v.Name == plr then
  59.              v.Rank = rank;
  60.         end
  61.     end
  62. end
  63.  
  64. MAIN.Functions.SetReason = function(plr, reason)
  65.          if type(plr) == "userdata" then plr = plr.Name;
  66.      elseif type(plr) == "stirng" then plr = plr;
  67.     else
  68.         plr = tostring(plr)
  69.     end
  70.     for i,v in pairs,MAIN.Ranked do
  71.          if v.Name == plr then
  72.              v.Reason = reason
  73.         end
  74.     end
  75. end
  76.  
  77. MAIN.Functions.Kick = function(plr)
  78.      
  79. local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
  80.  
  81.  
  82.    delay(1,function()
  83.  
  84.  
  85.        pcall(function() workspace.RemoteEvent:remove() end)
  86.  
  87.  
  88.       end)
  89.  
  90. end
  91.  
  92. MAIN.Functions.getColor=function(plr)
  93.      if type(plr) == "userdata" then plr = plr.Name;
  94.      elseif type(plr) == "stirng" then plr = plr;
  95.     else
  96.         plr = tostring(plr)
  97.     end
  98.     for i,v in next,MAIN.Ranked do
  99.          if v.Name == plr then
  100.              return v.Color;
  101.         end
  102.     end
  103.     return 'White';
  104. end
  105.  
  106. MAIN.Functions.getRank=function(plr)
  107.     if type(plr) == "userdata" then plr = plr.Name;
  108.      elseif type(plr) == "stirng" then plr = plr;
  109.     else
  110.         plr = tostring(plr)
  111.     end
  112.     for i,v in next,MAIN.Ranked do
  113.          if v.Name == plr then
  114.              return v.Rank;
  115.         end
  116.     end
  117.     return 1;
  118. end
  119.  
  120.  
  121. MAIN.Functions.Explore = function(p, part)
  122.      
  123. end
  124.  
  125. MAIN.Functions.getCommands=function()
  126.       local cmds={};
  127.         for i,v in pairs(MAIN.Cmds)do
  128.                 if(type(v)~='function')then
  129.                     cmds[i]=v;
  130.                 end;
  131.         end;
  132.         return cmds;
  133. end
  134.  
  135. MAIN.Functions.Output=function(plr,txt,clr,func)
  136.       --[[local time_;
  137.       if(time_)==100 then
  138.           spawn(function()
  139.               repeat
  140.                   time_ = 0;
  141.             until nil;
  142.         end)
  143.     end]]--
  144.     if clr == nil then clr = MAIN.Functions.getColor(plr); end;
  145.     if txt == nil then txt = txt; end;
  146.     txt = '[ENFORCER]\n'..txt;
  147.     if plr == nil then return false; end;
  148.     local prt=Instance.new("Part", workspace);
  149.     prt.CanCollide = false
  150.  
  151.  
  152. prt.Anchored = true
  153.  
  154.  
  155. prt.Locked = true
  156.  
  157.  
  158. prt.Name = "Tablets"
  159. --//prt.Material = 'Neon'
  160.  
  161. prt.FormFactor = 3
  162.  
  163.  
  164. prt.TopSurface = "Smooth"
  165.  
  166.  
  167. prt.BottomSurface = "Smooth"
  168.  
  169.  
  170. prt.Parent = game.Workspace
  171.  
  172.  
  173. prt.BrickColor = BrickColor.new(clr)
  174.  
  175.  
  176. prt.Size = Vector3.new(2.2, 2.2, 2.2)
  177.  
  178.  
  179.  
  180. prt.Transparency = .2;
  181. prt.CFrame = plr.Character.Torso.CFrame
  182.     local mesh = Instance.new("BlockMesh", prt)
  183.     mesh.Scale = Vector3.new(1, 1, 1)
  184.     mesh.Name = "lololomesh"
  185.     local sb  = Instance.new("SelectionBox", prt)
  186.     sb.Adornee = prt
  187.     sb.Color = BrickColor.new(clr)
  188.     sb.Transparency = .9
  189.     --//sb.LineThickness = .05;
  190.     local gui=Instance.new("BillboardGui", prt);
  191.     gui.Adornee=prt;
  192.     gui.Size=UDim2.new(1, 0, 1, 0);
  193.     gui.StudsOffset=Vector3.new(0, 3, 0);
  194.     local tl=Instance.new("TextLabel", gui);
  195.     tl.Size=UDim2.new(1, 0, 0.5, 0);
  196.     tl.Text=txt;
  197.     tl.BorderSizePixel=0;
  198.     tl.TextTransparency=0;
  199.     tl.TextStrokeTransparency=0;
  200.     tl.Font="SourceSansBold";
  201.     tl.FontSize="Size14";
  202.     tl.BackgroundTransparency = 1;
  203.     tl.TextColor3=prt.Color;
  204.     local cd=Instance.new("ClickDetector", prt)
  205.     cd.MaxActivationDistance=1/0;
  206.     cd.MouseHoverEnter:connect(function(p)
  207.           if(p==plr) then
  208.              prt.Transparency=0.5;
  209.              sb.Transparency=0.2;
  210.         end
  211.         if(p==plr)then
  212.              prt.Transparency=0;
  213.              sb.Transparency=0.7;
  214.         end
  215.     end)
  216.     cd.MouseClick:connect(function(p)
  217.          if p.Name == plr.Name or MAIN.Functions.getRank(p) > MAIN.Functions.getRank(plr) then
  218.              prt:Destroy()
  219.              for i,v in pairs(MAIN.Tabs) do
  220.                  if v.Name == prt.Name then
  221.                      table.remove(MAIN.Tabs, i)
  222.                 end
  223.             end
  224.             if func ~= nil then
  225.                  a,b = ypcall(function()
  226.                     func()
  227.                 end)
  228.                 if not a then MAIN.Functions.Output(plr, b, "Really red") end
  229.             end
  230.         end
  231.     end)
  232.     prt.Parent = script;
  233.     table.insert(MAIN.Tabs,{Box=sb, Tab=prt;Player=plr, Text = tl});
  234. end
  235.  
  236. MAIN.Functions.UpdateTabs = function()
  237.     MAIN.Rotation=MAIN.Rotation+.0001
  238.        for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
  239.  
  240.                    local PTabs = {};
  241.  
  242.                    for i,v in pairs(MAIN.Tabs) do
  243.  
  244.                          if v.Tab.Parent and v.Player == Player then
  245.  
  246.                                table.insert(PTabs, v);
  247.  
  248.                          end;
  249.  
  250.                   end;
  251.  
  252.                   for i = 1, #PTabs do
  253.  
  254.                       local pos;
  255.  
  256.                       pcall(function() pos = Player.Character.Torso.CFrame; end);
  257.  
  258.                       if(pos) == nil then return end;
  259.  
  260.                         local rad = (#PTabs*.6)+4;
  261.  
  262.                         local m = (i / #PTabs - (.5 / #PTabs) + MAIN.Rotation/(#PTabs/10)) * math.pi * 2
  263.  
  264.                         local x = math.sin(m)*(rad);
  265.  
  266.                         local y = math.sin(tick())
  267.  
  268.                         local z = math.cos(m)*rad;
  269.  
  270.                         local A=Vector3.new(x,y,z)+pos.p;
  271.  
  272.                         local B=PTabs[i].Tab.CFrame.p;
  273.  
  274.                         local C=A*.1+B*.9;
  275.  
  276.                         local d=math.rad((MAIN.Rotation*300)*math.pi);
  277.  
  278.                         PTabs[i].Tab.CFrame=CFrame.new(C,pos.p)
  279.                   end;
  280.  
  281.         end;
  282. end
  283.  
  284. MAIN.Functions.ConnectChat=function(Player)
  285.       local Ran,Error=coroutine.resume(coroutine.create(function()
  286.            Player.Chatted:connect(function(msg)
  287.               MAIN.Functions.OnChatted(Player, msg)
  288.               print(Player,msg)
  289.         end)
  290.     end))
  291.     if Ran then
  292.          print('Chat : '..Player.Name.. ' Ran : '..Ran)
  293.      else
  294.          --//print('Error : '..Player.Name..' Error : '..Error)
  295.     end
  296. end
  297.  
  298. MAIN.Functions.GiveWarnGui=function(self,Text)
  299.       local GUI=Instance.new("ScreenGui", game:service'PlayerGui')
  300.       GUI.Name = "GUI"
  301.       local Frame=Instance.new("Frame", GUI)
  302.       Frame.Size=UDim2.new(0,320,0,120);
  303.       Frame.Position=UDim2.new(0,0,0.5,-60);
  304.       Frame.Style=Enum.FrameStyle['RobloxRound'];
  305.       local Label=Instance.new("TextLabel", Frame)
  306.         Label.BackgroundColor3 = Color3.new(1, 1, 1);
  307.         Label.BorderColor3 = Color3.new(0.509804, 0.796079, 1);
  308.         Label.Name = 'Text';
  309.         Label.Position = UDim2.new(0.5, 0, 0.15000000596046, 0);
  310.         Label.Text = '[ENFORCER] Warning:';
  311.         Label.TextColor3 = Color3.new(1, 1, 1);
  312.         Label.TextStrokeColor3 = Color3.new(0.388235, 0.921569, 1);
  313.         Label.TextStrokeTransparency = 0;
  314.         Label.Font = Enum.Font.SourceSans;
  315.         Label.FontSize = Enum.FontSize.Size24;
  316.         local Title = Instance.new("TextLabel", Label)
  317.         Title.BackgroundColor3 = Color3.new(1, 1, 1);
  318.         Title.BorderColor3 = Color3.new(0.509804, 0.796079, 1);
  319.         Title.Name = 'Text';
  320.         Title.Position = UDim2.new(0.5, 0, 0.15000000596046, 0);
  321.         Title.Text = 'ICE Warning:';
  322.         Title.TextColor3 = Color3.new(1, 1, 1);
  323.         Title.TextStrokeColor3 = Color3.new(0.388235, 0.921569, 1);
  324.         Title.TextStrokeTransparency = 0;
  325.         Title.Font = Enum.Font.SourceSans;
  326.         Title.FontSize = Enum.FontSize.Size24;
  327. end
  328.  
  329. MAIN.Functions.AddCommand = function(Name, Say, Desc, Arguments, Rank, Func)
  330.       MAIN.Cmds[Name]={Name=Name,Say=Say,Desc=Desc,Arguments=Arguments,Rank=Rank,Func=Func}
  331. end
  332.  
  333. MAIN.Functions.OnChatted = function(Player, Message)
  334.        for i,v in pairs(MAIN.Cmds) do
  335.  
  336.         if Message:sub(1,string.len(v['Say']..MAIN.Bet)) == v['Say']..MAIN.Bet then
  337.  
  338.             if MAIN.Functions.getRank(Player) >= v.Rank  then
  339.  
  340.                 Message=Message:sub(1+#v['Say']+#MAIN.Bet)
  341.  
  342.                 a,b = ypcall(function()
  343.  
  344.                     v['Func'](Player, Message)
  345.  
  346.                 end)  if not a then print(b) end
  347.  
  348.             else
  349.  
  350.                 MAIN.Functions.Output(Player, "Rank "..tostring(v.Rank).." is needed for that command.", "Really red")
  351.  
  352.             end
  353.  
  354.         end
  355.  
  356.     end  
  357. end
  358.  
  359. MAIN.Functions.Dismiss = function(Player)
  360.       for i,v in pairs(MAIN.Tabs)do
  361.          if v.Player == Player then
  362.              spawn(function()
  363.                  coroutine.wrap(function()
  364.                     game:service'RunService'.Heartbeat:wait()
  365.                       for i = 0, 1, 0.3 do
  366.                           v.Tab.Size = v.Tab.Size + Vector3.new(0.1, 0.1, 0.1)
  367.                           v.Box.Transparency = v.Box.Transparency + 0.75
  368.                           v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + 0.75
  369.                           v.Tab.Transparency = v.Tab.Transparency + .01
  370.                     end
  371.                        spawn(function()
  372.                         game:service'RunService'.Heartbeat:connect(function()
  373.                          v.Tab:Destroy()
  374.                            end)
  375.                         end)
  376.                 end)()
  377.             end)
  378.         end
  379.     end
  380. end
  381.  
  382.  
  383. MAIN.Functions.GetSplit = function(msg)
  384.        local Name = nil
  385.        for i = 1, #Name do
  386.          if msg:sub(i,i) == '-' then
  387.              Name = Name + 1
  388.              break
  389.         end
  390.     end
  391.     if Name ~= nil then
  392.          return msg:sub(Name)
  393.           else
  394.         return nil 
  395.     end
  396. end
  397.  
  398.  
  399. MAIN.Functions.GetPlayerFromMsg = function(plr, msg)
  400.       local plrs = {}
  401.       if msg == 'me' then
  402.           table.insert(plrs, plr)
  403.     elseif msg == 'all' then
  404.           for i,v in pairs(game:service'Players':players()) do
  405.               if v ~= plr then
  406.                      table.insert(plrs, v)
  407.                 end
  408.         end
  409.     elseif msg == 'others' then
  410.            for i,v in pairs(game:service'Players':players()) do
  411.               if v ~= plr then
  412.                      table.insert(plrs, v)
  413.                 end
  414.         end
  415.     else
  416.          for _,v in pairs(game:service'Players':GetPlayers()) do
  417.              if v.Name:lower():sub(1,#msg) == msg:lower() then
  418.                  if MAIN.Functions.getRank(v) >= MAIN.Functions.getRank(plr) then
  419.                      table.insert(plrs, v)
  420.                 end
  421.             end
  422.         end
  423.     end
  424.     return plrs
  425. end
  426.  
  427. local function RemoveSounds()
  428. for _,v in pairs(game.Workspace:GetChildren()) do
  429. if v.ClassName=='Sound' then
  430. v:Pause()
  431. wait(1)
  432. v:remove()
  433. end
  434. end
  435. end
  436.  
  437. MAIN.Functions.AdminOutput = function(plr,txt,clr,func)
  438.      for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
  439.          if MAIN.Functions.getRank(Player) > 2 then
  440.              MAIN.Functions.Output(Player, plr, txt, clr, func)
  441.         end
  442.     end
  443. end
  444.  
  445. MAIN.Functions.Connect=function(Player)
  446.      MAIN.Functions.Output(Player, "Hello, you are authorized\n"..Player.Name.."!", "Really red");
  447.      MAIN.Functions.Output(Player, "You are Rank\n"..MAIN.Functions.getRank(Player),"Really red");
  448.      MAIN.Functions.Output(Player, "Your Color\n"..MAIN.Functions.getColor(Player),"Really red");
  449.      MAIN.Functions.Output(Player, "Made by PeroxDevelopment.", "Really blue");
  450.      MAIN.Functions.Output(Player, "Enforcer gen3 has authorized.\n", "Lime green");
  451.      Player.Chatted:connect(function(Message)
  452.           MAIN.Functions.OnChatted(Player, Message)
  453.     end)
  454. end
  455.  
  456. MAIN.Functions.DismissAll = function()
  457.      for _,Player in pairs(game:service'Players':GetPlayers()) do
  458.           MAIN.Functions.Dismiss(Player)
  459.     end
  460. end
  461.  
  462. MAIN.Functions.GetTablets=function(Player)
  463.      pcall(function() Player=Player.Name end)
  464.      local tabs={}
  465.      for i,v in pairs(MAIN.Tabs) do
  466.          if Player == v then
  467.              table.insert(tabs, v)
  468.         end
  469.     end
  470. end
  471.  
  472. MAIN.Functions.ShowCmds=function(Player)
  473.        MAIN.Functions.Dismiss(Player)
  474.        for i,v in pairs(MAIN.Cmds) do
  475.           MAIN.Functions.Output(Player, v.Name, MAIN.Functions.getColor(Player), function() MAIN.Functions.Dismiss(Player)
  476.              MAIN.Functions.Output(Player, "Name:"..v.Name, "Bright red")
  477.              MAIN.Functions.Output(Player, "Usage:"..v.Say..MAIN.Bet, "Bright red")
  478.              MAIN.Functions.Output(Player, "Desc:"..v.Desc, "Bright red")
  479.              MAIN.Functions.Output(Player, "Rank:"..v.Rank, "New Yeller")
  480.              MAIN.Functions.Output(Player, "Arguments:"..v.Arguments,"Really blue")
  481.         end)
  482.     end
  483. end
  484.  
  485. MAIN.Functions.ShowCmdsForRank=function(Player, Rank)
  486.      MAIN.Functions.Dismiss(Player)
  487.      for i,v in pairs(MAIN.Cmds) do
  488.          if v.Rank <= Rank then
  489.               MAIN.Functions.Output(Player, v.Name, MAIN.Functions.getColor(Player), function() MAIN.Functions.Dismiss(Player)
  490.              MAIN.Functions.Output(Player, "Name:"..v.Name, "Bright red")
  491.              MAIN.Functions.Output(Player, "Usage:"..v.Say..MAIN.Bet, "Bright red")
  492.              MAIN.Functions.Output(Player, "Desc:"..v.Desc, "Bright red")
  493.              MAIN.Functions.Output(Player, "Rank:"..v.Rank, "New Yeller")
  494.              MAIN.Functions.Output(Player, "Arguments:"..v.Arguments,"Really blue")
  495.             end)
  496.         end
  497.     end
  498. end
  499.  
  500. MAIN.Functions.AddCommand('Show commands','cmds','Shows list of commands.','No args',0,function(p,m)
  501.      MAIN.Functions.Dismiss(p)
  502.      MAIN.Functions.Output(p, 'Show commands of your rank:'..'['..MAIN.Functions.getRank(p)..']', 'Really red', function() MAIN.Functions.ShowCmdsForRank(p,MAIN.Functions.getRank(p)) end)
  503.      for i = 0,7 do
  504.          MAIN.Functions.Output(p, "Rank [" .. i .. "]".." commands", MAIN.Functions.getColor(plr), function() MAIN.Functions.Dismiss(plr) MAIN.Functions.ShowCmdsForRank(p, i) end)
  505.     end
  506.     MAIN.Functions.Output(p, "Your current rank:"..MAIN.Functions.getRank(p))
  507.     MAIN.Functions.Output(p, "Dismiss", "New Yeller", function() MAIN.Functions.Dismiss(p) end)
  508. end)
  509.  
  510. MAIN.Functions.AddCommand('Dt','dt','Dismisses your own tab.','No Args',0,function(p,m)
  511.      MAIN.Functions.Dismiss(p)
  512. end)
  513.  
  514. MAIN.Functions.AddCommand('Ping','p','Pings a msg from tab.','No args',1,function(p,m)
  515.      MAIN.Functions.Output(p, m, MAIN.Functions.getColor(p))
  516. end)
  517.  
  518. MAIN.Functions.AddCommand('Dismiss all','dall','Dismisses eveyones tabs.','No args',3,function(p,m)
  519.      MAIN.Functions.DismissAll(p)
  520. end)
  521.  
  522. MAIN.Functions.AddCommand('Force field','ff','gives you a blue forcefield.','<no arguments>',2,function(p,m)
  523.      local plrs=MAIN.Functions.GetPlayerFromMsg(p,m)
  524.      for i,v in pairs(plrs) do
  525.          if v then
  526.              Instance.new("ForceField", v.Character)
  527.         end
  528.          MAIN.Functions.Output(p, "Gave forcefield to : "..v.Name, "Really blue")
  529.     end
  530. end)
  531.  
  532. MAIN.Functions.AddCommand('Players','plrs','View list of plrs.','No args',4,function(p,m)
  533.      MAIN.Functions.Dismiss(p)
  534.      for _,Player in pairs(game:service'Players':GetPlayers()) do
  535.          MAIN.Functions.Output(p, Player.Name, MAIN.Functions.getColor(Player), function() MAIN.Functions.Dismiss(p)
  536.              MAIN.Functions.Output(p, "Profile Name"..Player.Name, "Really red")
  537.              MAIN.Functions.Output(p, "Rank\n"..MAIN.Functions.getRank(Player), MAIN.Functions.getColor(Player))
  538.              MAIN.Functions.Output(p, "Color\n"..MAIN.Functions.getColor(Player), MAIN.Functions.getColor(Player))
  539.              MAIN.Functions.Output(p, "AgeNumber\n"..Player.AccountAge, MAIN.Functions.getColor(Player))
  540.              MAIN.Functions.Output(p, "UserId\n"..Player.userId, MAIN.Functions.getColor(Player))
  541.         end)
  542.     end
  543. end)
  544.  
  545. MAIN.Functions.AddCommand('Ranked people','r','Views ranked menu.','<no arguments>',0,function(p,m)
  546.      MAIN.Functions.Dismiss(p)
  547.      for i,v in pairs(MAIN.Ranked) do
  548.          MAIN.Functions.Output(p, v.Name, "Bright red", function() MAIN.Functions.Dismiss(p)
  549.              MAIN.Functions.Output(p, "Profile Name"..v.Name, "Really red")
  550.              MAIN.Functions.Output(p, "Rank\n"..MAIN.Functions.getRank(v), MAIN.Functions.getColor(v))
  551.              MAIN.Functions.Output(p, "Color\n"..MAIN.Functions.getColor(v), MAIN.Functions.getColor(v))
  552.         end)
  553.     end
  554. end)
  555.  
  556. MAIN.Functions.AddCommand('Show all banned plrs','bplrs','Shows a list of ban plrs.','<no arguments>',1,function(p,m)
  557.      for i,Ranked in pairs(MAIN.Ranked) do
  558.          local IsInGame=false
  559.          IsInGame=false if game.Players:findFirstChild(i) then IsInGame=true end
  560.          MAIN.Functions.Output(p, i..'[ Rank : ' .. Ranked.Rank .. ' ; Is in game now : ' .. tostring(IsInGame)..' ]',MAIN.Functions.getColor(p), function()
  561.               MAIN.Functions.Dismiss(p)
  562.               MAIN.Functions.Output(p,i,Ranked.Color)
  563.               local banType="Banned" if Ranked.Rank == -2 then banType="Lagged" end
  564.               MAIN.Functions.Output(p, 'Rank:'..Ranked.Rank, 'Really red')
  565.               MAIN.Functions.Output(p, 'Bantype:'.. banType, 'Really red')
  566.               MAIN.Functions.Output(p, 'Reason/Desc'..Ranked.Reason, 'Really red')
  567.         end)
  568.     end
  569. end)
  570.  
  571. MAIN.Functions.AddCommand('Respawn','rs','Respawns your character.','<no args>',2,function(p,m)
  572.       local plrs=MAIN.Functions.GetPlayerFromMsg(p,m)
  573.       for i,v in pairs(plrs) do
  574.          if v then
  575.              v:LoadCharacter()
  576.         end
  577.     end
  578. end)
  579.  
  580. MAIN.Functions.AddCommand('Kill','kill','Kills a player.','<no args>',2,function(p,m)
  581.      local plrs=MAIN.Functions.GetPlayerFromMsg(p,m)
  582.      for i,v in pairs(plrs) do
  583.          if v then
  584.              v.Character:BreakJoints()
  585.         end
  586.     end
  587. end)
  588.  
  589. MAIN.Functions.AddCommand('Kick','kick','Kicks a player from game.','<no args>',4,function(p,m)
  590.        local PlrTab = MAIN.Functions.GetPlayerFromMsg(p,m)
  591.        if#PlrTab > 0 then
  592.          for _,v in pairs(PlrTab) do
  593.              if v then
  594.                   MAIN.Functions.Kick(game:service'Players'[v.Name])
  595.                 MAIN.Functions.Output(p, "Kicked : " ..v.Name.. "!", "Bright red.")
  596.             end
  597.         end
  598.     end
  599. end)
  600.  
  601. MAIN.Functions.AddCommand('Ban','b','Bans a player.','<no arguments>',4,function(p,m)
  602.       local PlrTab = MAIN.Functions.GetPlayerFromMsg(p,m)
  603.       if #PlrTab > 0 then
  604.          for _,v in pairs(PlrTab) do
  605.              --ypcall(function()
  606.                  MAIN.Functions.Output(p, v.Name.. 'Has been banned.', 'Really red')
  607.                  MAIN.Functions.SetRank(v, -1)
  608.                  MAIN.Functions.Kick(game:service'Players'[v.Name])
  609.             --end)
  610.         end
  611.     end
  612. end)
  613.  
  614. MAIN.Functions.AddCommand('Shutdown','sd','Shuts down the server.','<Server>',6,function(p,m)
  615.       local msg = Instance.new("Message", workspace)
  616.       for i = 10,0,0.5 do
  617.          m.Text = "[ENFORCER]: Shutting downs erver in "..tostring(10-i).."seconds!"
  618.          wait()
  619.     end
  620.      Instance.new("StringValue",workspace).Value = string.rep("Lel",100);
  621. end)
  622.  
  623. MAIN.Functions.AddCommand('Info','info','Shows info about Enforcer Generation 3.','<Info>',0,function(p,m)
  624.      MAIN.Functions.Dismiss(p)
  625.      MAIN.Functions.Output(p, "Script Name: Enforcer.", "New Yeller")
  626.      MAIN.Functions.Output(p, "You current rank:"..MAIN.Functions.getRank(p))
  627.      MAIN.Functions.Output(p, "Your current color:"..MAIN.Functions.getColor(p))
  628.      MAIN.Functions.Output(p, "Amount of lines: almost upto 500..", "Lime green")
  629.      MAIN.Functions.Output(p, "This was made by PeroxDevelopment.", "Really red")
  630.      MAIN.Functions.Output(p, "Dismiss", "Really red", function() MAIN.Functions.Dismiss(p) end)
  631. end)
  632.  
  633. MAIN.Functions.AddCommand('Execute','exe','Executes a script.','<no arguments>',5,function(p,m)
  634.       local Func,Error=loadstring(m)()
  635.       getfenv(Func).print=function(...) local Check = "" for _,v in pairs({...}) do Check = Check..tostring(v).."\n" end MAIN.Functions.Output(p, Check, "White")
  636.         getfenv(Func).Player = p
  637.          getfenv(Func).MAIN = MAIN
  638.          if Error == nil then
  639.              coroutine.wrap(function()
  640.                    Func()
  641.             end)()
  642.             MAIN.Functions.Output(p, "Script ran!", "Lime green")
  643.          else
  644.             MAIN.Functions.Output(p, "Error, cannot run script.", 'Really blue')
  645.         end
  646.     end
  647. end)
  648.  
  649. MAIN.Functions.AddCommand('Chat logs','cc','Checks your chats.','<no args>',3,function(p,m)
  650.       p.Chatted:connect(function(msg)
  651.          MAIN.Functions.ConnectChat(p, msg)
  652.     end)
  653. end)
  654.  
  655. MAIN.Functions.AddCommand('Music','music','Plays a music/song/insert a id.','<no args>',3,function(p,m)
  656.      
  657. end)
  658.  
  659. MAIN.Functions.AddCommand('Ban','b','Bans a player from game.','<no arguments>',4,function(p,m)
  660.       for i,v in pairs(MAIN.Functions.GetPlayerFromMsg(p,m)) do
  661.           if(MAIN.Functions.SetRank(v,-1)) then
  662.              MAIN.Functions.Kick(v)
  663.         end
  664.     end
  665. end)
  666.  
  667. MAIN.Functions.AddCommand('Give warning gui','gwarning','Gives a player a warning gui.','<no arguments>',5,function(p,m)
  668.       MAIN.Functions.GiveWarnGui(p)
  669. end)
  670.  
  671. MAIN.Functions.AddCommand('God','god','Gives you godmode.','<no args>',2,function(p,m)
  672.      local PlrTab = MAIN.Functions.GetPlayerFromMsg(p,m)
  673.      if #PlrTab > 0 then
  674.           for _,v in pairs(PlrTab) do
  675.              if v then
  676.                  v.Character.Humanoid.MaxHealth = math.huge
  677.             end
  678.             MAIN.Functions.Output(p, "Gave godmode to : " ..v.Name.."!", "Bright blue")
  679.         end
  680.     end
  681. end)
  682.  
  683. MAIN.Functions.AddCommand('Btools','btools','Gives you btools.','<no args>',2,function(p,m)
  684.      local PlrTab = MAIN.Functions.GetPlayerFromMsg(p,m)
  685.      if #PlrTab > 0 then
  686.          for _,v in pairs(PlrTab) do
  687.              Instance.new("HopperBin", v.Backpack).Type = "Hammer"
  688.              Instance.new("HopperBin", v.Backpack).Type = "Clone"
  689.              Instance.new("HopperBin", v.Backpack).Type = "Grab"
  690.         end
  691.         MAIN.Functions.Output(p, "Gave btools to : " ..v.Name.."!", "Bright blue")
  692.     end
  693. end)
  694.  
  695.  
  696.  
  697. MAIN.Functions.AddCommand('Get','get','Get something','<no arguments>',2,function(p,m)
  698.      local msg=m
  699.      local plrs=MAIN.Functions.GetPlayerFromMsg(p,m)
  700.      if msg == m then m = '' or m == nil end
  701.      if msg == 'god' then
  702.          for i,v in pairs(plrs) do
  703.              if v then
  704.                  v.Character.Humanoid.MaxHealth = math.huge
  705.             end
  706.         end
  707.     elseif msg == 'rs' then
  708.          for i,v in pairs(plrs) do
  709.              if v then
  710.                  v:LoadCharacter()
  711.             end
  712.         end
  713.     elseif msg == 'kill' then
  714.          for i,v in pairs(plrs) do
  715.              if v then
  716.                 v.Character:BreakJoints()
  717.             end
  718.         end
  719.     elseif msg == 'ff' then
  720.           for i,v in pairs(plrs) do
  721.              if v then
  722.                  Instance.new('ForceField', v.Character.Torso)
  723.             end
  724.         end
  725.     end
  726. end)
  727.  
  728. -- PLAYER CONNECTIONS --
  729.  
  730. game.Players.PlayerAdded:connect(function(p)
  731.       if MAIN.Functions.getRank(p) > -1 then MAIN.Functions.Kick(game:service'Players'[p.Name]) end
  732.       pcall(function()
  733.           MAIN.Functions.Connect(p)
  734.     end)
  735.     p.Chatted:connect(function(m)
  736.           MAIN.Functions.OnChatted(p, m)
  737.     end)
  738. end)
  739.  
  740. game.Players.PlayerAdded:connect(function(p)
  741.      if p.AccountAge > 100 then
  742.      elseif p.AccountAge > 50 then
  743.      elseif p.AccountAge > 0 then
  744.      elseif p.AccountAge > 30 then
  745.      MAIN.Functions.Kick(game:service'Players'[p.Name])
  746.     end
  747. end)
  748.  
  749.  
  750.  
  751. -- HTTP CONNECTIONS -- CREDIT TO MIST ADMIN --
  752.  
  753. coroutine.wrap(function()
  754.     local function isHTTPEnabled()
  755.         local args={
  756.             ypcall(function()
  757.                 game:GetService'HttpService':GetAsync'http://pastebin.com/bihnVnwb';
  758.             end);
  759.         };
  760.         if(not args[1])then
  761.             return false;
  762.         end;
  763.         return true;
  764.     end;
  765.     if(not isHTTPEnabled())then
  766.         coroutine.wrap(function()
  767.             repeat wait() until MAIN.Functions['Output'];
  768.             for _,v in next,game:service'Players':players()do
  769.                 MAIN.Functions['Output'](v, 'HTTP REQUEST [NOT ENABLED].', 'Really red')
  770.             end;
  771.         end)();
  772.     end;
  773. end)();
  774.  
  775. for _,Player in next,game:service'Players':GetPlayers()do
  776.      MAIN.Functions.Connect(Player);
  777. end
  778. MAIN.Functions.ConnectChat()
  779. MAIN.Functions.AdminOutput('Loaded in:'..start..'!', 'Bright blue')
  780. game:service'RunService'.Stepped:connect(MAIN.Functions.UpdateTabs);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement