Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MAIN;
- start=time();
- for _,v in pairs(script:children'') do
- ypcall(function() v.Name = "\n"; end);
- end
- MAIN = {
- ['Tabs']={};
- ['Cmds']={};
- ['Ranked']={
- {['Name'] = 'PeroxDevelopment', ['Rank'] = 7, ['Reason'] = 'Creator', ['Color'] = 'Toothpaste'};
- {['Name'] = 'TheOfficalNoob4788', ['Rank'] = 5, ['Reason'] = 'BestFirend. :D', ['Color'] = 'Deep orange'};
- {['Name'] = 'supersonicfan111', ['Rank'] = 4, ['Reason'] = 'Pretty good friend.', ['Color'] = 'New Yeller'};
- {["Name"] = "BanTester", ["Rank"] = -1, ["BanReason"] = "becuztest.", ["Color"] = "Really black"};
- {["Name"] = "xXAwesomekillerzXx", ["Rank"] = 2, ["Reason"] = "Good guy! but kind of use leak scripts", ["Color"] = "Really red"};
- {["Name"] = "DigitalZer3", ["Rank"] = 2, ["Reason"] = "Good guy.", ["Color"] = "New Yeller"};
- {["Name"] = "fireblader16", ["Rank"] = 4, ["Reason"] = "Good guy! Teaching him how to make tabs.", ["Color"] = "Royal purple"};
- };
- ['Ranks']={
- [7] = "Creator";
- [6] = "Leader";
- [5] = "Mod";
- [4] = "Scripter";
- [3] = "Beta-Tester";
- [2] = "Member";
- [1] = "Player";
- };
- ['Banned']={
- {["Name"] = "BanTester", ["Rank"] = -1, ["BanReason"] = "becuztest.", ["Color"] = "Really black"};
- };
- Rotation = 0;
- Colors={
- White=BrickColor.new'White'.Color;
- Black=BrickColor.new'Black'.Color;
- Pink=BrickColor.new'Hot pink'.Color;
- Red=BrickColor.new'Really red'.Color;
- Blue=BrickColor.new'Really blue'.Color;
- Green=BrickColor.new'Lime green'.Color;
- Yellow=BrickColor.new'New Yeller'.Color;
- Orange=BrickColor.new'Flame yellowish orange'.Color;
- };
- ['Functions']={};
- ['PriServ'] = false;
- ['ListPriPeople']={
- 'PeorxDevelopment';
- };
- Bet = '/';
- }
- function MAIN.Functions.SetRank(plr, rank)
- if type(plr) == "userdata" then plr = plr.Name;
- elseif type(plr) == "stirng" then plr = plr;
- else
- plr = tostring(plr)
- end
- for i,v in next,MAIN.Ranked do
- if v.Name == plr then
- v.Rank = rank;
- end
- end
- end
- MAIN.Functions.SetReason = function(plr, reason)
- if type(plr) == "userdata" then plr = plr.Name;
- elseif type(plr) == "stirng" then plr = plr;
- else
- plr = tostring(plr)
- end
- for i,v in pairs,MAIN.Ranked do
- if v.Name == plr then
- v.Reason = reason
- end
- end
- end
- MAIN.Functions.Kick = function(plr)
- local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
- delay(1,function()
- pcall(function() workspace.RemoteEvent:remove() end)
- end)
- end
- MAIN.Functions.getColor=function(plr)
- if type(plr) == "userdata" then plr = plr.Name;
- elseif type(plr) == "stirng" then plr = plr;
- else
- plr = tostring(plr)
- end
- for i,v in next,MAIN.Ranked do
- if v.Name == plr then
- return v.Color;
- end
- end
- return 'White';
- end
- MAIN.Functions.getRank=function(plr)
- if type(plr) == "userdata" then plr = plr.Name;
- elseif type(plr) == "stirng" then plr = plr;
- else
- plr = tostring(plr)
- end
- for i,v in next,MAIN.Ranked do
- if v.Name == plr then
- return v.Rank;
- end
- end
- return 1;
- end
- MAIN.Functions.Explore = function(p, part)
- end
- MAIN.Functions.getCommands=function()
- local cmds={};
- for i,v in pairs(MAIN.Cmds)do
- if(type(v)~='function')then
- cmds[i]=v;
- end;
- end;
- return cmds;
- end
- MAIN.Functions.Output=function(plr,txt,clr,func)
- --[[local time_;
- if(time_)==100 then
- spawn(function()
- repeat
- time_ = 0;
- until nil;
- end)
- end]]--
- if clr == nil then clr = MAIN.Functions.getColor(plr); end;
- if txt == nil then txt = txt; end;
- txt = '[ENFORCER]\n'..txt;
- if plr == nil then return false; end;
- local prt=Instance.new("Part", workspace);
- prt.CanCollide = false
- prt.Anchored = true
- prt.Locked = true
- prt.Name = "Tablets"
- --//prt.Material = 'Neon'
- prt.FormFactor = 3
- prt.TopSurface = "Smooth"
- prt.BottomSurface = "Smooth"
- prt.Parent = game.Workspace
- prt.BrickColor = BrickColor.new(clr)
- prt.Size = Vector3.new(2.2, 2.2, 2.2)
- prt.Transparency = .2;
- prt.CFrame = plr.Character.Torso.CFrame
- local mesh = Instance.new("BlockMesh", prt)
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.Name = "lololomesh"
- local sb = Instance.new("SelectionBox", prt)
- sb.Adornee = prt
- sb.Color = BrickColor.new(clr)
- sb.Transparency = .9
- --//sb.LineThickness = .05;
- local gui=Instance.new("BillboardGui", prt);
- gui.Adornee=prt;
- gui.Size=UDim2.new(1, 0, 1, 0);
- gui.StudsOffset=Vector3.new(0, 3, 0);
- local tl=Instance.new("TextLabel", gui);
- tl.Size=UDim2.new(1, 0, 0.5, 0);
- tl.Text=txt;
- tl.BorderSizePixel=0;
- tl.TextTransparency=0;
- tl.TextStrokeTransparency=0;
- tl.Font="SourceSansBold";
- tl.FontSize="Size14";
- tl.BackgroundTransparency = 1;
- tl.TextColor3=prt.Color;
- local cd=Instance.new("ClickDetector", prt)
- cd.MaxActivationDistance=1/0;
- cd.MouseHoverEnter:connect(function(p)
- if(p==plr) then
- prt.Transparency=0.5;
- sb.Transparency=0.2;
- end
- if(p==plr)then
- prt.Transparency=0;
- sb.Transparency=0.7;
- end
- end)
- cd.MouseClick:connect(function(p)
- if p.Name == plr.Name or MAIN.Functions.getRank(p) > MAIN.Functions.getRank(plr) then
- prt:Destroy()
- for i,v in pairs(MAIN.Tabs) do
- if v.Name == prt.Name then
- table.remove(MAIN.Tabs, i)
- end
- end
- if func ~= nil then
- a,b = ypcall(function()
- func()
- end)
- if not a then MAIN.Functions.Output(plr, b, "Really red") end
- end
- end
- end)
- prt.Parent = script;
- table.insert(MAIN.Tabs,{Box=sb, Tab=prt;Player=plr, Text = tl});
- end
- MAIN.Functions.UpdateTabs = function()
- MAIN.Rotation=MAIN.Rotation+.0001
- for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
- local PTabs = {};
- for i,v in pairs(MAIN.Tabs) do
- if v.Tab.Parent and v.Player == Player then
- table.insert(PTabs, v);
- end;
- end;
- for i = 1, #PTabs do
- local pos;
- pcall(function() pos = Player.Character.Torso.CFrame; end);
- if(pos) == nil then return end;
- local rad = (#PTabs*.6)+4;
- local m = (i / #PTabs - (.5 / #PTabs) + MAIN.Rotation/(#PTabs/10)) * math.pi * 2
- local x = math.sin(m)*(rad);
- local y = math.sin(tick())
- local z = math.cos(m)*rad;
- local A=Vector3.new(x,y,z)+pos.p;
- local B=PTabs[i].Tab.CFrame.p;
- local C=A*.1+B*.9;
- local d=math.rad((MAIN.Rotation*300)*math.pi);
- PTabs[i].Tab.CFrame=CFrame.new(C,pos.p)
- end;
- end;
- end
- MAIN.Functions.ConnectChat=function(Player)
- local Ran,Error=coroutine.resume(coroutine.create(function()
- Player.Chatted:connect(function(msg)
- MAIN.Functions.OnChatted(Player, msg)
- print(Player,msg)
- end)
- end))
- if Ran then
- print('Chat : '..Player.Name.. ' Ran : '..Ran)
- else
- --//print('Error : '..Player.Name..' Error : '..Error)
- end
- end
- MAIN.Functions.GiveWarnGui=function(self,Text)
- local GUI=Instance.new("ScreenGui", game:service'PlayerGui')
- GUI.Name = "GUI"
- local Frame=Instance.new("Frame", GUI)
- Frame.Size=UDim2.new(0,320,0,120);
- Frame.Position=UDim2.new(0,0,0.5,-60);
- Frame.Style=Enum.FrameStyle['RobloxRound'];
- local Label=Instance.new("TextLabel", Frame)
- Label.BackgroundColor3 = Color3.new(1, 1, 1);
- Label.BorderColor3 = Color3.new(0.509804, 0.796079, 1);
- Label.Name = 'Text';
- Label.Position = UDim2.new(0.5, 0, 0.15000000596046, 0);
- Label.Text = '[ENFORCER] Warning:';
- Label.TextColor3 = Color3.new(1, 1, 1);
- Label.TextStrokeColor3 = Color3.new(0.388235, 0.921569, 1);
- Label.TextStrokeTransparency = 0;
- Label.Font = Enum.Font.SourceSans;
- Label.FontSize = Enum.FontSize.Size24;
- local Title = Instance.new("TextLabel", Label)
- Title.BackgroundColor3 = Color3.new(1, 1, 1);
- Title.BorderColor3 = Color3.new(0.509804, 0.796079, 1);
- Title.Name = 'Text';
- Title.Position = UDim2.new(0.5, 0, 0.15000000596046, 0);
- Title.Text = 'ICE Warning:';
- Title.TextColor3 = Color3.new(1, 1, 1);
- Title.TextStrokeColor3 = Color3.new(0.388235, 0.921569, 1);
- Title.TextStrokeTransparency = 0;
- Title.Font = Enum.Font.SourceSans;
- Title.FontSize = Enum.FontSize.Size24;
- end
- MAIN.Functions.AddCommand = function(Name, Say, Desc, Arguments, Rank, Func)
- MAIN.Cmds[Name]={Name=Name,Say=Say,Desc=Desc,Arguments=Arguments,Rank=Rank,Func=Func}
- end
- MAIN.Functions.OnChatted = function(Player, Message)
- for i,v in pairs(MAIN.Cmds) do
- if Message:sub(1,string.len(v['Say']..MAIN.Bet)) == v['Say']..MAIN.Bet then
- if MAIN.Functions.getRank(Player) >= v.Rank then
- Message=Message:sub(1+#v['Say']+#MAIN.Bet)
- a,b = ypcall(function()
- v['Func'](Player, Message)
- end) if not a then print(b) end
- else
- MAIN.Functions.Output(Player, "Rank "..tostring(v.Rank).." is needed for that command.", "Really red")
- end
- end
- end
- end
- MAIN.Functions.Dismiss = function(Player)
- for i,v in pairs(MAIN.Tabs)do
- if v.Player == Player then
- spawn(function()
- coroutine.wrap(function()
- game:service'RunService'.Heartbeat:wait()
- for i = 0, 1, 0.3 do
- v.Tab.Size = v.Tab.Size + Vector3.new(0.1, 0.1, 0.1)
- v.Box.Transparency = v.Box.Transparency + 0.75
- v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + 0.75
- v.Tab.Transparency = v.Tab.Transparency + .01
- end
- spawn(function()
- game:service'RunService'.Heartbeat:connect(function()
- v.Tab:Destroy()
- end)
- end)
- end)()
- end)
- end
- end
- end
- MAIN.Functions.GetSplit = function(msg)
- local Name = nil
- for i = 1, #Name do
- if msg:sub(i,i) == '-' then
- Name = Name + 1
- break
- end
- end
- if Name ~= nil then
- return msg:sub(Name)
- else
- return nil
- end
- end
- MAIN.Functions.GetPlayerFromMsg = function(plr, msg)
- local plrs = {}
- if msg == 'me' then
- table.insert(plrs, plr)
- elseif msg == 'all' then
- for i,v in pairs(game:service'Players':players()) do
- if v ~= plr then
- table.insert(plrs, v)
- end
- end
- elseif msg == 'others' then
- for i,v in pairs(game:service'Players':players()) do
- if v ~= plr then
- table.insert(plrs, v)
- end
- end
- else
- for _,v in pairs(game:service'Players':GetPlayers()) do
- if v.Name:lower():sub(1,#msg) == msg:lower() then
- if MAIN.Functions.getRank(v) >= MAIN.Functions.getRank(plr) then
- table.insert(plrs, v)
- end
- end
- end
- end
- return plrs
- end
- local function RemoveSounds()
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v.ClassName=='Sound' then
- v:Pause()
- wait(1)
- v:remove()
- end
- end
- end
- MAIN.Functions.AdminOutput = function(plr,txt,clr,func)
- for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
- if MAIN.Functions.getRank(Player) > 2 then
- MAIN.Functions.Output(Player, plr, txt, clr, func)
- end
- end
- end
- MAIN.Functions.Connect=function(Player)
- MAIN.Functions.Output(Player, "Hello, you are authorized\n"..Player.Name.."!", "Really red");
- MAIN.Functions.Output(Player, "You are Rank\n"..MAIN.Functions.getRank(Player),"Really red");
- MAIN.Functions.Output(Player, "Your Color\n"..MAIN.Functions.getColor(Player),"Really red");
- MAIN.Functions.Output(Player, "Made by PeroxDevelopment.", "Really blue");
- MAIN.Functions.Output(Player, "Enforcer gen3 has authorized.\n", "Lime green");
- Player.Chatted:connect(function(Message)
- MAIN.Functions.OnChatted(Player, Message)
- end)
- end
- MAIN.Functions.DismissAll = function()
- for _,Player in pairs(game:service'Players':GetPlayers()) do
- MAIN.Functions.Dismiss(Player)
- end
- end
- MAIN.Functions.GetTablets=function(Player)
- pcall(function() Player=Player.Name end)
- local tabs={}
- for i,v in pairs(MAIN.Tabs) do
- if Player == v then
- table.insert(tabs, v)
- end
- end
- end
- MAIN.Functions.ShowCmds=function(Player)
- MAIN.Functions.Dismiss(Player)
- for i,v in pairs(MAIN.Cmds) do
- MAIN.Functions.Output(Player, v.Name, MAIN.Functions.getColor(Player), function() MAIN.Functions.Dismiss(Player)
- MAIN.Functions.Output(Player, "Name:"..v.Name, "Bright red")
- MAIN.Functions.Output(Player, "Usage:"..v.Say..MAIN.Bet, "Bright red")
- MAIN.Functions.Output(Player, "Desc:"..v.Desc, "Bright red")
- MAIN.Functions.Output(Player, "Rank:"..v.Rank, "New Yeller")
- MAIN.Functions.Output(Player, "Arguments:"..v.Arguments,"Really blue")
- end)
- end
- end
- MAIN.Functions.ShowCmdsForRank=function(Player, Rank)
- MAIN.Functions.Dismiss(Player)
- for i,v in pairs(MAIN.Cmds) do
- if v.Rank <= Rank then
- MAIN.Functions.Output(Player, v.Name, MAIN.Functions.getColor(Player), function() MAIN.Functions.Dismiss(Player)
- MAIN.Functions.Output(Player, "Name:"..v.Name, "Bright red")
- MAIN.Functions.Output(Player, "Usage:"..v.Say..MAIN.Bet, "Bright red")
- MAIN.Functions.Output(Player, "Desc:"..v.Desc, "Bright red")
- MAIN.Functions.Output(Player, "Rank:"..v.Rank, "New Yeller")
- MAIN.Functions.Output(Player, "Arguments:"..v.Arguments,"Really blue")
- end)
- end
- end
- end
- MAIN.Functions.AddCommand('Show commands','cmds','Shows list of commands.','No args',0,function(p,m)
- MAIN.Functions.Dismiss(p)
- 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)
- for i = 0,7 do
- MAIN.Functions.Output(p, "Rank [" .. i .. "]".." commands", MAIN.Functions.getColor(plr), function() MAIN.Functions.Dismiss(plr) MAIN.Functions.ShowCmdsForRank(p, i) end)
- end
- MAIN.Functions.Output(p, "Your current rank:"..MAIN.Functions.getRank(p))
- MAIN.Functions.Output(p, "Dismiss", "New Yeller", function() MAIN.Functions.Dismiss(p) end)
- end)
- MAIN.Functions.AddCommand('Dt','dt','Dismisses your own tab.','No Args',0,function(p,m)
- MAIN.Functions.Dismiss(p)
- end)
- MAIN.Functions.AddCommand('Ping','p','Pings a msg from tab.','No args',1,function(p,m)
- MAIN.Functions.Output(p, m, MAIN.Functions.getColor(p))
- end)
- MAIN.Functions.AddCommand('Dismiss all','dall','Dismisses eveyones tabs.','No args',3,function(p,m)
- MAIN.Functions.DismissAll(p)
- end)
- MAIN.Functions.AddCommand('Force field','ff','gives you a blue forcefield.','<no arguments>',2,function(p,m)
- local plrs=MAIN.Functions.GetPlayerFromMsg(p,m)
- for i,v in pairs(plrs) do
- if v then
- Instance.new("ForceField", v.Character)
- end
- MAIN.Functions.Output(p, "Gave forcefield to : "..v.Name, "Really blue")
- end
- end)
- MAIN.Functions.AddCommand('Players','plrs','View list of plrs.','No args',4,function(p,m)
- MAIN.Functions.Dismiss(p)
- for _,Player in pairs(game:service'Players':GetPlayers()) do
- MAIN.Functions.Output(p, Player.Name, MAIN.Functions.getColor(Player), function() MAIN.Functions.Dismiss(p)
- MAIN.Functions.Output(p, "Profile Name"..Player.Name, "Really red")
- MAIN.Functions.Output(p, "Rank\n"..MAIN.Functions.getRank(Player), MAIN.Functions.getColor(Player))
- MAIN.Functions.Output(p, "Color\n"..MAIN.Functions.getColor(Player), MAIN.Functions.getColor(Player))
- MAIN.Functions.Output(p, "AgeNumber\n"..Player.AccountAge, MAIN.Functions.getColor(Player))
- MAIN.Functions.Output(p, "UserId\n"..Player.userId, MAIN.Functions.getColor(Player))
- end)
- end
- end)
- MAIN.Functions.AddCommand('Ranked people','r','Views ranked menu.','<no arguments>',0,function(p,m)
- MAIN.Functions.Dismiss(p)
- for i,v in pairs(MAIN.Ranked) do
- MAIN.Functions.Output(p, v.Name, "Bright red", function() MAIN.Functions.Dismiss(p)
- MAIN.Functions.Output(p, "Profile Name"..v.Name, "Really red")
- MAIN.Functions.Output(p, "Rank\n"..MAIN.Functions.getRank(v), MAIN.Functions.getColor(v))
- MAIN.Functions.Output(p, "Color\n"..MAIN.Functions.getColor(v), MAIN.Functions.getColor(v))
- end)
- end
- end)
- MAIN.Functions.AddCommand('Show all banned plrs','bplrs','Shows a list of ban plrs.','<no arguments>',1,function(p,m)
- for i,Ranked in pairs(MAIN.Ranked) do
- local IsInGame=false
- IsInGame=false if game.Players:findFirstChild(i) then IsInGame=true end
- MAIN.Functions.Output(p, i..'[ Rank : ' .. Ranked.Rank .. ' ; Is in game now : ' .. tostring(IsInGame)..' ]',MAIN.Functions.getColor(p), function()
- MAIN.Functions.Dismiss(p)
- MAIN.Functions.Output(p,i,Ranked.Color)
- local banType="Banned" if Ranked.Rank == -2 then banType="Lagged" end
- MAIN.Functions.Output(p, 'Rank:'..Ranked.Rank, 'Really red')
- MAIN.Functions.Output(p, 'Bantype:'.. banType, 'Really red')
- MAIN.Functions.Output(p, 'Reason/Desc'..Ranked.Reason, 'Really red')
- end)
- end
- end)
- MAIN.Functions.AddCommand('Respawn','rs','Respawns your character.','<no args>',2,function(p,m)
- local plrs=MAIN.Functions.GetPlayerFromMsg(p,m)
- for i,v in pairs(plrs) do
- if v then
- v:LoadCharacter()
- end
- end
- end)
- MAIN.Functions.AddCommand('Kill','kill','Kills a player.','<no args>',2,function(p,m)
- local plrs=MAIN.Functions.GetPlayerFromMsg(p,m)
- for i,v in pairs(plrs) do
- if v then
- v.Character:BreakJoints()
- end
- end
- end)
- MAIN.Functions.AddCommand('Kick','kick','Kicks a player from game.','<no args>',4,function(p,m)
- local PlrTab = MAIN.Functions.GetPlayerFromMsg(p,m)
- if#PlrTab > 0 then
- for _,v in pairs(PlrTab) do
- if v then
- MAIN.Functions.Kick(game:service'Players'[v.Name])
- MAIN.Functions.Output(p, "Kicked : " ..v.Name.. "!", "Bright red.")
- end
- end
- end
- end)
- MAIN.Functions.AddCommand('Ban','b','Bans a player.','<no arguments>',4,function(p,m)
- local PlrTab = MAIN.Functions.GetPlayerFromMsg(p,m)
- if #PlrTab > 0 then
- for _,v in pairs(PlrTab) do
- --ypcall(function()
- MAIN.Functions.Output(p, v.Name.. 'Has been banned.', 'Really red')
- MAIN.Functions.SetRank(v, -1)
- MAIN.Functions.Kick(game:service'Players'[v.Name])
- --end)
- end
- end
- end)
- MAIN.Functions.AddCommand('Shutdown','sd','Shuts down the server.','<Server>',6,function(p,m)
- local msg = Instance.new("Message", workspace)
- for i = 10,0,0.5 do
- m.Text = "[ENFORCER]: Shutting downs erver in "..tostring(10-i).."seconds!"
- wait()
- end
- Instance.new("StringValue",workspace).Value = string.rep("Lel",100);
- end)
- MAIN.Functions.AddCommand('Info','info','Shows info about Enforcer Generation 3.','<Info>',0,function(p,m)
- MAIN.Functions.Dismiss(p)
- MAIN.Functions.Output(p, "Script Name: Enforcer.", "New Yeller")
- MAIN.Functions.Output(p, "You current rank:"..MAIN.Functions.getRank(p))
- MAIN.Functions.Output(p, "Your current color:"..MAIN.Functions.getColor(p))
- MAIN.Functions.Output(p, "Amount of lines: almost upto 500..", "Lime green")
- MAIN.Functions.Output(p, "This was made by PeroxDevelopment.", "Really red")
- MAIN.Functions.Output(p, "Dismiss", "Really red", function() MAIN.Functions.Dismiss(p) end)
- end)
- MAIN.Functions.AddCommand('Execute','exe','Executes a script.','<no arguments>',5,function(p,m)
- local Func,Error=loadstring(m)()
- getfenv(Func).print=function(...) local Check = "" for _,v in pairs({...}) do Check = Check..tostring(v).."\n" end MAIN.Functions.Output(p, Check, "White")
- getfenv(Func).Player = p
- getfenv(Func).MAIN = MAIN
- if Error == nil then
- coroutine.wrap(function()
- Func()
- end)()
- MAIN.Functions.Output(p, "Script ran!", "Lime green")
- else
- MAIN.Functions.Output(p, "Error, cannot run script.", 'Really blue')
- end
- end
- end)
- MAIN.Functions.AddCommand('Chat logs','cc','Checks your chats.','<no args>',3,function(p,m)
- p.Chatted:connect(function(msg)
- MAIN.Functions.ConnectChat(p, msg)
- end)
- end)
- MAIN.Functions.AddCommand('Music','music','Plays a music/song/insert a id.','<no args>',3,function(p,m)
- end)
- MAIN.Functions.AddCommand('Ban','b','Bans a player from game.','<no arguments>',4,function(p,m)
- for i,v in pairs(MAIN.Functions.GetPlayerFromMsg(p,m)) do
- if(MAIN.Functions.SetRank(v,-1)) then
- MAIN.Functions.Kick(v)
- end
- end
- end)
- MAIN.Functions.AddCommand('Give warning gui','gwarning','Gives a player a warning gui.','<no arguments>',5,function(p,m)
- MAIN.Functions.GiveWarnGui(p)
- end)
- MAIN.Functions.AddCommand('God','god','Gives you godmode.','<no args>',2,function(p,m)
- local PlrTab = MAIN.Functions.GetPlayerFromMsg(p,m)
- if #PlrTab > 0 then
- for _,v in pairs(PlrTab) do
- if v then
- v.Character.Humanoid.MaxHealth = math.huge
- end
- MAIN.Functions.Output(p, "Gave godmode to : " ..v.Name.."!", "Bright blue")
- end
- end
- end)
- MAIN.Functions.AddCommand('Btools','btools','Gives you btools.','<no args>',2,function(p,m)
- local PlrTab = MAIN.Functions.GetPlayerFromMsg(p,m)
- if #PlrTab > 0 then
- for _,v in pairs(PlrTab) do
- Instance.new("HopperBin", v.Backpack).Type = "Hammer"
- Instance.new("HopperBin", v.Backpack).Type = "Clone"
- Instance.new("HopperBin", v.Backpack).Type = "Grab"
- end
- MAIN.Functions.Output(p, "Gave btools to : " ..v.Name.."!", "Bright blue")
- end
- end)
- MAIN.Functions.AddCommand('Get','get','Get something','<no arguments>',2,function(p,m)
- local msg=m
- local plrs=MAIN.Functions.GetPlayerFromMsg(p,m)
- if msg == m then m = '' or m == nil end
- if msg == 'god' then
- for i,v in pairs(plrs) do
- if v then
- v.Character.Humanoid.MaxHealth = math.huge
- end
- end
- elseif msg == 'rs' then
- for i,v in pairs(plrs) do
- if v then
- v:LoadCharacter()
- end
- end
- elseif msg == 'kill' then
- for i,v in pairs(plrs) do
- if v then
- v.Character:BreakJoints()
- end
- end
- elseif msg == 'ff' then
- for i,v in pairs(plrs) do
- if v then
- Instance.new('ForceField', v.Character.Torso)
- end
- end
- end
- end)
- -- PLAYER CONNECTIONS --
- game.Players.PlayerAdded:connect(function(p)
- if MAIN.Functions.getRank(p) > -1 then MAIN.Functions.Kick(game:service'Players'[p.Name]) end
- pcall(function()
- MAIN.Functions.Connect(p)
- end)
- p.Chatted:connect(function(m)
- MAIN.Functions.OnChatted(p, m)
- end)
- end)
- game.Players.PlayerAdded:connect(function(p)
- if p.AccountAge > 100 then
- elseif p.AccountAge > 50 then
- elseif p.AccountAge > 0 then
- elseif p.AccountAge > 30 then
- MAIN.Functions.Kick(game:service'Players'[p.Name])
- end
- end)
- -- HTTP CONNECTIONS -- CREDIT TO MIST ADMIN --
- coroutine.wrap(function()
- local function isHTTPEnabled()
- local args={
- ypcall(function()
- game:GetService'HttpService':GetAsync'http://pastebin.com/bihnVnwb';
- end);
- };
- if(not args[1])then
- return false;
- end;
- return true;
- end;
- if(not isHTTPEnabled())then
- coroutine.wrap(function()
- repeat wait() until MAIN.Functions['Output'];
- for _,v in next,game:service'Players':players()do
- MAIN.Functions['Output'](v, 'HTTP REQUEST [NOT ENABLED].', 'Really red')
- end;
- end)();
- end;
- end)();
- for _,Player in next,game:service'Players':GetPlayers()do
- MAIN.Functions.Connect(Player);
- end
- MAIN.Functions.ConnectChat()
- MAIN.Functions.AdminOutput('Loaded in:'..start..'!', 'Bright blue')
- game:service'RunService'.Stepped:connect(MAIN.Functions.UpdateTabs);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement