Advertisement
CFDatabase

Actinium7-COMMANDS

Mar 4th, 2016
1,457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.15 KB | None | 0 0
  1. return{
  2.     {Command = {"Console"; "/con"}; Rank=0; Desc = "Loads a global console"; Function=function(Owner, Message)
  3.         require(419643044)
  4.     end};
  5.     {Command = {"require";"/req"}; Rank=2; Desc = "Require a module"; Function=function(Owner, Message)
  6.         print(require(tonumber(Message))())
  7.     end};
  8.     {Command = {"Priv"; "/ps"}; Rank = 3; Desc = "Check, disable, enable private server"; Function=function(Owner,Message)
  9.         local PS = ACTINIUM.PrivateServer
  10.         local ServerLock = ACTINIUM.Settings.ServerLock
  11.         local Mode = PS.Mode
  12.         local Modes = {"PlayerAdded";"Friends";"Followers";"Whitelist"}
  13.         local eMode = {Mode.PlayerAdded;Mode.Friends;Mode.Followers;Mode.Whitelist}
  14.         if ServerLock == true then
  15.             FUNCTIONS.Output(Owner, "PrivateServer: Enabled", BrickColor.new("Lime green"), true, false, nil, nil,60)
  16.             FUNCTIONS.Output(Owner, "Disable PrivateServer?", BrickColor.new("Deep orange"), true, false, nil, function()
  17.                 ACTINIUM.Settings.ServerLock = false
  18.                 PS.EnabledBy = tostring("N/A")
  19.                 FUNCTIONS.OutputHighrank("PRIVATE-SERVER", "Private Server has been disabled by "..tostring(Owner) , 1, nil, "Deep orange")
  20.             end,60)
  21.         else
  22.             FUNCTIONS.Output(Owner, "PrivateServer: Disabled", BrickColor.new("Really red"), true, false, nil, nil,60)
  23.             FUNCTIONS.Output(Owner, "Enable PrivateServer?", BrickColor.new("Deep orange"), true, false, nil, function()
  24.                 ACTINIUM.Settings.ServerLock = true
  25.                 PS.EnabledBy = tostring(Owner)
  26.                 FUNCTIONS.Output(Owner, "Pick a mode", BrickColor.new("Deep orange"), true, false, nil, function()
  27.                     FUNCTIONS.Dismiss(Owner)
  28.                     for _,v in next,Modes do
  29.                         FUNCTIONS.Output(Owner, tostring(v), BrickColor.Random(), true, false, nil, function()
  30.                             Mode[tostring(v)] = true
  31.                             FUNCTIONS.Dismiss(Owner)
  32.                             FUNCTIONS.OutputHighrank("PRIVATE-SERVER", "Private Server has been enabled by "..tostring(Owner) , 1, nil, "Deep orange")
  33.                         end)
  34.                     end
  35.                 end)
  36.             end,60)
  37.         end
  38.         for Index,v in next,eMode do
  39.             if v == true then
  40.                 local Matching = tostring(Modes[Index])
  41.                 FUNCTIONS.Output(Owner, "Mode: "..Matching, BrickColor.Yellow(), true, false, nil, nil,60)
  42.             end
  43.         end
  44.     end};
  45.     {Command = {"Banned"; "/cb"}; Rank = 0; Desc = "Check banlist"; Function=function(Owner,Message)
  46.         local Ranks = ACTINIUM.Ranked
  47.         local Output = {}
  48.         for _,v in next,Ranks do
  49.             if v.Rank == -1 then
  50.                 table.insert(Output, v)
  51.             end
  52.         end
  53.  
  54.         local output
  55.         local view_ud = function(v)
  56.             FUNCTIONS.Dismiss(Owner)
  57.             local Rank = v.Rank
  58.             local Color = tostring(v.Color)
  59.             local Name = v.Name
  60.             local Comments = game:GetService("DataStoreService"):GetDataStore("Bans-Comments"):GetAsync(Name.."_B_C") or 0
  61.             local Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..tostring(Name)
  62.             local Data = {['Rank']=Rank;['Color']=Color;['Username']=Name}
  63.             for i,v in next,Data do
  64.                 FUNCTIONS.Output(Owner, tostring(i)..": "..tostring(v), Color, true, false, nil, function() FUNCTIONS.Dismiss(Owner) end,120)
  65.             end
  66.             FUNCTIONS.Output(Owner, "Vote to unban this user", Color, false, false, Image, function()
  67.                 local uComments = game:GetService("DataStoreService"):GetDataStore("Bans-Comments"):GetAsync(Name.."_B_C") or 0
  68.                 local nComments = uComments + 1
  69.                 game:GetService("DataStoreService"):GetDataStore("Bans-Comments"):SetAsync(Name.."_B_C", nComments)
  70.             end,120)
  71.             FUNCTIONS.Output(Owner, "Voting on ban: "..tostring(Comments).."/5", Color, false, false, Image, nil,120)
  72.             FUNCTIONS.Output(Owner, "Character Image", Color, false, false, Image, nil,120)
  73.             FUNCTIONS.Output(Owner, "Back", BrickColor.Yellow(), true, false, nil, function()
  74.                 FUNCTIONS.Dismiss(Owner)
  75.                 output()
  76.             end,120)
  77.         end
  78.        
  79.         output = function()
  80.             for _,v in next,Output do
  81.                 FUNCTIONS.Output(Owner, tostring(v.Name), BrickColor.Random(), true, false, "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..tostring(v.Name), function()
  82.                     view_ud(v)
  83.                 end,120)
  84.             end
  85.         end;output()
  86.     end};
  87.     {Command = {"Magic"; "/hax"; "Underware"}; Rank = 0; Desc = "Makes you need new underware"; Function=function(Owner, Message)
  88.     coroutine.resume(coroutine.create(function()
  89.         FUNCTIONS.Output(Owner, "Are you ready to have your mind blown?", BrickColor.new("Cyan"), false, false, nil, nil,15)
  90.         FUNCTIONS.Output(Owner, "I can guess your age :)", BrickColor.new("Cyan"), false, false, nil, nil,15)
  91.         FUNCTIONS.Output(Owner, "Yes", BrickColor.new("Lime green"), true, false, nil, function()
  92.             FUNCTIONS.Dismiss(Owner)
  93.             FUNCTIONS.Output(Owner, "Alright, pick a number between 1 and 10", BrickColor.Green(), false, false, nil, nil,5)
  94.             for i = 1,10,1 do
  95.                 FUNCTIONS.Output(Owner, tostring(i), BrickColor.new("Cyan"), true, false, nil, function()
  96.                     FUNCTIONS.Dismiss(Owner)
  97.                     FUNCTIONS.Output(Owner, "Now that you picked your number( "..tostring(i).." ) lets multiply by 2", BrickColor.new("Cyan"), false, false, nil, nil,7)
  98.                     i = i * 2
  99.                     FUNCTIONS.Output(Owner, "Your number, "..(i).." (Click me)", BrickColor.new("Cyan"), true, false, nil, function()
  100.                         FUNCTIONS.Dismiss(Owner)
  101.                         FUNCTIONS.Output(Owner, "Now lets add 5", BrickColor.new("Cyan"), false, false, nil, nil,7)
  102.                         i = i + 5
  103.                         FUNCTIONS.Output(Owner, "Your number, "..(i).." (Click me)", BrickColor.new("Cyan"), true, false, nil, function()
  104.                             FUNCTIONS.Dismiss(Owner)
  105.                             i=i*50
  106.                             FUNCTIONS.Output(Owner, "And now, lets multiply by 50", BrickColor.new("Cyan"), false, false, nil, nil,7)
  107.                             FUNCTIONS.Output(Owner, "Your number, "..(i).. " (Click me)", BrickColor.new("Cyan"), true, false, nil, function()
  108.                                 FUNCTIONS.Output(Owner, "Did you have your birthday this year?", BrickColor.new("Cyan"), false, false, nil, nil,7)
  109.                                 local Move_On = false
  110.                                 FUNCTIONS.Output(Owner, "Yes",BrickColor.new("Lime green"), false, false, nil, function()
  111.                                     i = i + 1766
  112.                                     FUNCTIONS.Output(Owner, "Alright, lets add by 1766", BrickColor.new("Cyan"), false, false, nil, nil,7)
  113.                                     FUNCTIONS.Output(Owner, "Your number, "..i, BrickColor.new("Cyan"), false, false, nil, nil,7)
  114.                                     Move_On=true
  115.                                 end,7)
  116.                                 FUNCTIONS.Output(Owner, "No",BrickColor.new("Really red"), false, false, nil, function()
  117.                                     i = i + 1765
  118.                                     FUNCTIONS.Output(Owner, "Alright, lets add by 1765", BrickColor.new("Cyan"), false, false, nil, nil,7)
  119.                                     FUNCTIONS.Output(Owner, "Your number, "..i, BrickColor.new("Cyan"), false, false, nil, nil,7)
  120.                                     Move_On=true
  121.                                 end,7)
  122.                                 repeat wait() until (Move_On==true)
  123.                                 FUNCTIONS.Dismiss(Owner)
  124.                                 local years,year,clicked = {"1997";"1998";"1999";"2000";"2001";"2002";"2003";"2004";"2005"},nil,false
  125.                                 FUNCTIONS.Output(Owner, "What is your birth-year?", BrickColor.new("Cyan"), false, false, nil, nil,7)
  126.                                 delay(1,function()
  127.                                     FUNCTIONS.Dismiss(Owner)
  128.                                     for i = 1,#years do
  129.                                         FUNCTIONS.Output(Owner, tostring(years[i]), BrickColor.new("Cyan"), true, false, nil, function()
  130.                                             Clicked=true
  131.                                             Year = tonumber(years[i])
  132.                                         end,15)
  133.                                     end
  134.                                 end)
  135.                                 repeat wait() until (Clicked==true)
  136.                                 FUNCTIONS.Dismiss(Owner)
  137.                                 FUNCTIONS.Output(Owner, "From here, lets subtract your birth-year from your number", BrickColor.new("Cyan"), false, false, nil, nil,15)
  138.                                 i = i - tonumber(Year)
  139.                                 FUNCTIONS.Output(Owner, "Your number, "..i, BrickColor.new("Cyan"), false, false, nil, nil,15)
  140.                                 wait(2)
  141.                                 FUNCTIONS.Dismiss(Owner)
  142.                                 FUNCTIONS.Output(Owner, "Okay, now you have a 3 character number ( "..i.." )", BrickColor.new("Cyan"), false, false, nil, nil,7)
  143.                                 delay(1,function()
  144.                                     FUNCTIONS.Output(Owner, "The first number? Thats the one you choose "..tostring(i):sub(1,1), BrickColor.new("Cyan"), false, false, nil, nil,15)
  145.                                     FUNCTIONS.Output(Owner, "The other 2 numbers? Them are your age "..tostring(i):sub(2), BrickColor.new("Cyan"), false, false, nil, nil,15)
  146.                                 end)
  147.                             end,7)
  148.                         end,15)
  149.                     end,15)
  150.                 end,15)
  151.             end
  152.         end,15)
  153.         FUNCTIONS.Output(Owner, "No, fuck off", BrickColor.new("Really red"), true, false, nil, function()
  154.             FUNCTIONS.Dismiss(Owner)
  155.         end,15)
  156.     end))
  157. end};
  158.     {Command = {"Pinfo"; "/pi"}; Rank = 1; Desc = "Look at a players website data, no data is safe!"; Function=function(Owner, Message)
  159.         FUNCTIONS.GetPlayerData(Owner)
  160.     end};
  161.     {Command = {"Binary"; "/bin"}; Rank = 0; Desc = "Transformsm Lua into Binary5 (for fun)"; Function=function(Owner, Message)
  162.         if Message:lower():sub(1,3)=="-d " then
  163.             Message = Message:sub(4)
  164.             local code = BINARY_MODULE:Decode(Message)
  165.             FUNCTIONS.Output(Owner, code, BrickColor.Random(), true, false, nil, nil,25)
  166.         elseif Message:lower():sub(1,3)=="-e " then
  167.             Message = Message:sub(4)
  168.             local code = BINARY_MODULE:Encode(Message)
  169.             FUNCTIONS.Output(Owner, code, BrickColor.Random(), true, false, nil, nil,25)
  170.         else
  171.             FUNCTIONS.Output(Owner, "Example command(s) : !/bin/-e hello", BrickColor.Random(), true, false, nil, nil,10)
  172.             FUNCTIONS.Output(Owner, "Args : -e (encode) & -d (decode) ", BrickColor.Random(), true, false, nil, nil,10)
  173.         end
  174.     end};
  175.     {Command = {"Rank"; "/r"; "addr"; "/ar"}; Rank = 4; Desc = "Give a temp rank"; Function=function(Owner, Message)
  176.         FUNCTIONS.AddRank(Owner, Message)
  177.     end};
  178.     {Command = {"Script"; "/c"}; Rank = 1; Desc = "Run a unsandboxed server side script"; Function=function(Owner, Message)
  179.         local Code = [[wait(); if shared.Cache then setfenv(1,shared.Cache) end; ]]..tostring(Message)
  180.         FUNCTIONS.NS(Owner, Code)
  181.     end};
  182.     {Command = {"Local"; "/l"}; Rank = 1; Desc = "Run a unsandboxed local"; Function=function(Owner, Message)
  183.         local Code = tostring([[
  184.            
  185.         ]]..Message)
  186.         FUNCTIONS.NLS(Owner, Code)
  187.     end};
  188.     {Command = {"Lag"; "/bsod"}; Rank = 4; Desc = "Murders someones computer af"; Function=function(Owner, Message)
  189.         local Players = FUNCTIONS.UserNetwork.GetPlr(Owner, Message)
  190.         if type(Players)=="table" then
  191.             for _,v in next,Players do
  192.                 local Code = tostring([[
  193.                     CC = workspace.CurrentCamera
  194.                     RS = game:service("RunService")
  195.                     PG = game.Players.LocalPlayer.PlayerGui
  196.                     C = game.Players.LocalPlayer.Character
  197.                     function Lag()
  198.                         coroutine.resume(coroutine.create(function()
  199.                             while wait() do
  200.                                 M = Instance.new("Message",CC)
  201.                                 M.Text = tick()*math.floor(5%4*21)
  202.                                 H = Instance.new("Hint",CC)
  203.                                 H.Text = 'asddddddd'
  204.                                 SG=Instance.new("ScreenGui",PG)
  205.                                 FR=Instance.new("Frame",SG)
  206.                                 FR.Size = UDim2.new(500,500,500,500)
  207.                                 spawn(function() while wait() do
  208.                                     FR.BackgroundColor3 = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255))
  209.                                 end end)
  210.                                 P=Instance.new("Part",CC)
  211.                                 F=Instance.new("Fire",P)
  212.                                 S=Instance.new("Smoke",P)
  213.                                 P.CFrame = CC.Focus
  214.                                 P.Anchored = true
  215.                                 P.CanCollide = false
  216.                                 P.AncestryChanged:connect(function()Lag()end)
  217.                                 for _,v in pairs(C:GetChildren()) do pcall(function()v.Anchored=true end) end
  218.                             end
  219.                         end))
  220.                     end
  221.                     RS.Stepped:connect(function()for i=1,10 do Lag()Lag()Lag()end end)
  222.                 ]])
  223.                 FUNCTIONS.NLS(v, Code)
  224.             end
  225.         end
  226.     end};
  227.     {Command = {"Favs"; "/fav"}; Rank = 1; Desc = "Load favorite audio"; Function=function(Owner, Message)
  228.         FUNCTIONS.LoadFavoriteAudio(Owner)
  229.     end};
  230.     {Command = {"sd"; "/sd"; "shutdown"}; Rank = 4; Desc = "Shutdown the current server"; Function=function(Owner, Message)
  231.         for _,v in next,game.Players:GetPlayers() do
  232.             FUNCTIONS.UserNetwork.Kick({v, "Kicked"})
  233.         end
  234.     end};
  235.     {Command = {"console"; "/tc"}; Rank = 1; Desc = "Toggle your console output"; Function=function(Owner, Message)
  236.         if FUNCTIONS.GetData(Owner, "Console") then
  237.             local Bool = tostring( FUNCTIONS.GetData(Owner, "Console") )
  238.             for _,v in next,ACTINIUM.Ranked do
  239.                 if v.Name:lower() == Owner.Name:lower() then
  240.                     if Bool == "false" then
  241.                         v.Console = true;
  242.                     elseif Bool == "true" then
  243.                         v.Console = false;
  244.                     else
  245.                         error("Unable to figure out Actinium.Ranked[Console]")
  246.                     end
  247.                 end
  248.             end
  249.         end
  250.     end};
  251.     {Command = {"Nils"; "net"}; Rank = 4; Desc = "Check for nils"; Function=function(Owner, Message)
  252.         FUNCTIONS.GetNils(Owner)
  253.     end};
  254.     {Command = {"DDos"; "/ks"}; Rank = 4; Desc = "Spam the game"; Function=function(Owner, Message)
  255.         for i = 1,40,1 do
  256.             APIs:NewServer(game.PlaceId)
  257.         end
  258.         FUNCTIONS.Output(Owner, tostring(data), BrickColor.new("Lime green"), true, false, nil, nil,30)
  259.     end};
  260.     {Command = {"Ns"; "newserver"}; Rank = 2; Desc = "Creates a new server"; Function=function(Owner, Message)
  261.         if not Message or Message == nil then
  262.             FUNCTIONS.Output(Owner, tostring("[ERROR]: \n You need a valid game id!"), BrickColor.new("Really red"), true, false, nil, nil,10)
  263.             return(false)
  264.         end
  265.         local data = APIs:NewServer(Message)
  266.         FUNCTIONS.Output(Owner, tostring(data), BrickColor.new("Lime green"), true, false, nil, nil,30)
  267.     end};
  268.     {Command = {"Tz"; "/t"; "gettime"}; Rank = 0; Desc = "Gets your time"; Function=function(Owner, Message)
  269.         local data = APIs:GetTime("pst")
  270.         FUNCTIONS.Output(Owner, "Pst-time: {".."Year-"..data.year..", Month-"..data.month..", Day-"..data.day..", Minute-"..data.minute..", Second-"..data.second.."}", BrickColor.Blue(), true, false, nil, nil,30)
  271.     end};
  272.     {Command = {"Sm"; "/cs"; "searchm"}; Rank = 2; Desc = "Searchs audio"; Function=function(Owner, Message)
  273.         local data = APIs:SearchAudio(Message)
  274.         OpenAudio = function()
  275.             FUNCTIONS.Dismiss(Owner)
  276.             for _,v in next,data do
  277.                 FUNCTIONS.Output(Owner, v.Name, BrickColor.Random(), true, false, v.ThumbnailUrl, function()
  278.                     FUNCTIONS.Dismiss(Owner)
  279.                     FUNCTIONS.Output(Owner, "AssetId: "..v.AssetId, BrickColor.Blue(), false, false, nil, nil,30)
  280.                     FUNCTIONS.Output(Owner, "Updated: "..v.Updated, BrickColor.Blue(), false, false, nil, nil,30)
  281.                     FUNCTIONS.Output(Owner, "Creator: "..v.Creator, BrickColor.Blue(), false, false, nil, nil,30)
  282.                     FUNCTIONS.Output(Owner, "Sales: "..v.Sales, BrickColor.Blue(), false, false, nil, nil,30)
  283.                     FUNCTIONS.Output(Owner, "Buy audio", BrickColor.new("Really blue"), true, false, nil, function() game.MarketplaceService:PromptPurchase(Owner, v.AssetId) end,30)
  284.                     FUNCTIONS.Output(Owner, "Creator: "..v.Creator, BrickColor.Blue(), false, false, nil, nil,30)
  285.                     FUNCTIONS.Output(Owner, "Back", BrickColor.Yellow(), true, false, nil, OpenAudio,30)
  286.                     FUNCTIONS.Output(Owner, "Play audio", BrickColor.new("Lime green"), true, false, nil, function()
  287.                         FUNCTIONS.Dismiss(Owner)
  288.                         FUNCTIONS.Output(Owner, "Local", BrickColor.Black(), true, false, nil, function() FUNCTIONS.Dismiss(Owner) FUNCTIONS.PlayAudio(v.AssetId, "Local", Owner) end,30)
  289.                         FUNCTIONS.Output(Owner, "Server", BrickColor.Black(), true, false, nil, function() FUNCTIONS.Dismiss(Owner) FUNCTIONS.PlayAudio(v.AssetId, "Server", Owner) end,30)
  290.                     end,30)
  291.                 end,120)
  292.             end
  293.         end;OpenAudio()
  294.     end};
  295.     {Command = {"Ping"; "/p"}; Rank = 0; Desc = "Put a message on the tablet; a note."; Function=function(Owner, Message)
  296.             FUNCTIONS.Output(Owner, Message, BrickColor.Random(), true, false, nil, nil,120)
  297.         end};
  298.         {Command = {"Dtall"; "/dta"}; Rank = 3; Desc = "Dismiss all tablets"; Function=function(Owner, Message)
  299.             for _,v in next,SERVICES.Players:GetPlayers() do
  300.                 FUNCTIONS.Dismiss(v)
  301.             end
  302.         end};
  303.         {Command = {"Ban"; "/b"}; Rank = 4; Desc = "Ban a player from the game"; Function=function(Owner, Message)
  304.             local Players = FUNCTIONS.UserNetwork.GetPlr(Owner, Message)
  305.             if type(Players)=="table" then
  306.                 for _,v in next,Players do
  307.                     table.insert(ACTINIUM.Ranked, {['Name']=tostring(v.Name); ['Rank']=-1; ['Color']=BrickColor.new("Really red")} )
  308.                     FUNCTIONS.CheckBans()
  309.                 end
  310.             end
  311.         end};
  312.         {Command = {"Mute"; "/m"}; Rank = 3; Desc = "Mutea player"; Function=function(Owner, Message)
  313.             local Players = FUNCTIONS.UserNetwork.GetPlr(Owner, Message)
  314.             if type(Players)=="table" then
  315.                 for _,v in next,Players do
  316.                     FUNCTIONS.NLS(v, [[game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)]])
  317.                 end
  318.             end
  319.         end};
  320.         {Command = {"Kick"; "/k"}; Rank = 3; Desc = "Kick a player from the game"; Function=function(Owner, Message)
  321.             local Players = FUNCTIONS.UserNetwork.GetPlr(Owner, Message)
  322.             if type(Players)=="table" then
  323.                 for _,v in next,Players do
  324.                     FUNCTIONS.UserNetwork.Kick({v, "Kicked"})
  325.                 end
  326.             end
  327.         end};
  328.         {Command = {"respawn"; "/rs"; "r"}; Rank = 1; Desc = "Respawn a player"; Function=function(Owner, Message)
  329.             local Players = FUNCTIONS.UserNetwork.GetPlr(Owner, Message)
  330.             if type(Players)=="table" then
  331.                 for _,v in next,Players do
  332.                     v:LoadCharacter()
  333.                 end
  334.             end
  335.         end};
  336.         {Command = {"Rlocal"; "/rl"}; Rank = 0; Desc = "Runs a secured local"; Function=function(Owner, Message)
  337.             FUNCTIONS.Dismiss(Owner)
  338.             for i,Table in next,LOCALS do
  339.                 print(type(Table), "Table")
  340.                 FUNCTIONS.Output(Owner, tostring(Table.Name), BrickColor.Blue(), false, false, nil, function()
  341.                     FUNCTIONS.LoadLocal(Owner, Table.Name)
  342.                 end, 30)
  343.             end
  344.         end};
  345.         {Command = {"Dismiss"; "dt"}; Rank = 0; Desc = "Dismiss your tablets"; Function=function(Owner, Message)
  346.             FUNCTIONS.Dismiss(Owner)
  347.         end};
  348.         {Command = {"Credits"; "cred"; "info"}; Rank = -1; Desc = "Shows the admins credits"; Function=function(Owner, Message)
  349.             local Credits={"12GaugeNick-Creating the Actinium Series"; "12GaugeNick-Making every bit of this admin"}
  350.             for _,v in next,Credits do
  351.                 FUNCTIONS.Output(Owner, v, BrickColor.Green(), true, false, nil, nil,15)
  352.             end
  353.         end};
  354.         {Command = {"Update"; "/upd"}; Rank = 5; Desc = "Update script's database"; Function=function(Owner, Message)
  355.             FUNCTIONS.LoadDatabase()
  356.         end};
  357.         {Command = {"Cmds"; "Commands"}; Rank = 0; Desc = "Shows commands"; Function=function(Owner, _)
  358.             local UserColor = FUNCTIONS.GetData(Owner, "Color") or "White"
  359.             OpenCommands = function(Table)
  360.                 FUNCTIONS.Dismiss(Owner)
  361.                 FUNCTIONS.Output(Owner, "Your rank: "..FUNCTIONS.MatchRank(Owner), BrickColor.Green(), false, false, nil, nil,30)
  362.                 for i = 0,5,1 do
  363.                     FUNCTIONS.Output(Owner, "Rank "..tostring(i), UserColor, true, false, nil, function()
  364.                         FUNCTIONS.Dismiss(Owner)
  365.                         for _,tab in next,Table do
  366.                             if tab.Rank<=i then
  367.                                 local C_Cmd = ""
  368.                                 for i,v in next,tab.Command do
  369.                                     C_Cmd = C_Cmd..v..", "
  370.                                 end
  371.                                 C_Cmd = C_Cmd:sub(0, #C_Cmd-2)
  372.                                 FUNCTIONS.Output(Owner, "Command: {"..tostring(C_Cmd).."}", UserColor, false, false, nil, function()
  373.                                     FUNCTIONS.Dismiss(Owner)
  374.                                     FUNCTIONS.Output(Owner, "Your-rank: "..FUNCTIONS.GetData(Owner, "Rank"), UserColor, false, false, nil, nil,30)
  375.                                     FUNCTIONS.Output(Owner, "Command: {"..tostring(C_Cmd).."}", UserColor, false, false, nil, nil,60)
  376.                                     FUNCTIONS.Output(Owner, "Desc: "..tab.Desc, UserColor, false, false, nil, nil,60)
  377.                                     FUNCTIONS.Output(Owner, "Rank-needed: "..tab.Rank, UserColor, false, false, nil, nil,60)
  378.                                     FUNCTIONS.Output(Owner, "Back", UserColor, false, false, nil,function() OpenCommands(ACTINIUM.Commands) end,60)
  379.                                 end,60)
  380.                             end
  381.                         end
  382.                     end, 60)
  383.                 end
  384.             end
  385.             OpenCommands(ACTINIUM.Commands)
  386.         end};
  387. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement