Advertisement
replic8

admin tabs thing (5 i think..)

Jun 3rd, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.65 KB | None | 0 0
  1. --jaja has struck again n00b
  2. local Acuntiox
  3.  
  4. StartOffTime = tick()
  5.  
  6. rot = 0
  7.  
  8. Acuntiox = {
  9. Commands = {};
  10. Ranked = {};
  11. Tablets = {};
  12. Chats = {};
  13. Trials = {};
  14.  
  15. Services = {
  16. Players = game:GetService("Players");
  17. Workspace = game:GetService("Workspace");
  18. Lighting = game:GetService("Lighting");
  19. RunService = game:GetService("RunService");
  20. HttpService = game:GetService("HttpService");
  21. };
  22.  
  23. Rotation = 0;
  24. RotationIncrease = .1;
  25.  
  26. ServerSided = false;
  27. PrivateServer = {};
  28. Settings = {
  29. PrivateServer = {};
  30. Bans = {};
  31. Cilent = false;
  32. Waiting = {};
  33. };
  34.  
  35. ServerCilent = false;
  36. ServerLock = false;
  37. Script_Owner = getfenv().owner or "Unknown";
  38.  
  39. Version = 3;
  40.  
  41. Ranks = {
  42. {Rank = 10, Description = "Creator"};
  43. {Rank = 9, Description = "Lead Developer"};
  44. {Rank = 8, Description = "Developer"};
  45. {Rank = 7, Description = "Maxiunm Admin"};
  46. {Rank = 6, Description = "High Adminstrator"};
  47. {Rank = 5, Description = "Good Friend"};
  48. {Rank = 4, Description = "Scripter"};
  49. {Rank = 3, Description = "Uknown Player"};
  50. {Rank = 2, Description = "Player"};
  51. {Rank = 1, Description = "Guest"};
  52. {Rank = 0, Description = "Member"};
  53. {Rank = -1, Description = "Banned"};
  54. {Rank = -2, Description = "Lost"};
  55. {Rank = -3, Description = "Lagged"};
  56. };
  57.  
  58. Colors = {
  59. "Institutional white",
  60. "Bright red",
  61. "Bright blue",
  62. "Bright yellow",
  63. "Really black",
  64. "Bright orange",
  65. "Bright violet",
  66. "Dark stone grey",
  67. "Light stone grey",
  68. "Really red",
  69. "Lime green",
  70. "Really blue",
  71. "Teal",
  72. "Hot pink",
  73. "Gold"
  74. };--Colors
  75.  
  76. Functions = {
  77. CreateData = function(Name,Rank,Color,Description,Prefix)
  78. Name=Name or'';
  79. Rank=Rank or Actuniox.Ranked;
  80. Description=Description or Acuntiox.Ranked.Description;
  81. Color=Color or 'New Yeller';
  82. if(Acuntiox.Ranked[Name]==nil)then
  83. Acuntiox.Ranked[Name]={Name=Name,Rank=Rank,Color=Color,Color=Color,Description=Description,Prefix=Prefix};
  84. end;
  85. end;
  86.  
  87.  
  88. CreateCommand = function(Name, Say, Rank, Description, Function)
  89. Acuntiox.Commands[Name]={Name=Name,Say=Say,Rank=Rank,Description=Description,Function=Function};
  90. end;
  91.  
  92. GetRank = function(Player)
  93. pcall(function()Player=Player.Name;end);
  94. local data=Acuntiox.Ranked[Player];
  95. local rank=0;
  96. pcall(function()rank=data.Rank;end);
  97. return rank;
  98. end;
  99. GetColor = function(Player)
  100. pcall(function()Player=Player.Name;end);
  101. local data=Acuntiox.Ranked[Player];
  102. local clr="Lime green";
  103. pcall(function()clr=data.Color;end);
  104. return clr;
  105. end;
  106. GetReason = function(Player)
  107. pcall(function()Player=Player.Name;end);
  108. local data=Acuntiox.Ranked[Player];
  109. local Reason="N/A";
  110. pcall(function()Reason=data.Description;end);
  111. return Reason;
  112. end;
  113. GetPrefix = function(Player)
  114. pcall(function()Player=Player.Name;end);
  115. local data=Acuntiox.Ranked[Player];
  116. local pefix=";";
  117. pcall(function()Reason=data.Prefix;end);
  118. return prefix;
  119. end;
  120.  
  121. Output = function(Player, Text, Time, Color, Function)
  122. if Color == nil then Color = "White" or Actuniox.Functions.GetColor(Player)end;
  123. if Time == nil then Time = 0 end;
  124. if Text == nil then Text = Text or tostring(Text) end;
  125. if Player == nil then Player = tostring(Player) or false end;
  126. local tablez = {};
  127. local Part = Acuntiox.Functions.Create("Part", {Parent = game.Workspace, Name = "REVEX Output~"..tick()*math.tan(os.time()), Locked = true, CFrame = PartCFrame, BrickColor = BrickColor.new(Color), FormFactor = "Custom", TopSurface = 0, BottomSurface = 0, Transparency = 0, Material = "Plastic",Anchored = true, CanCollide = false, Size = Vector3.new(0,0,0)})
  128. pcall(function() Part.CFrame = Player.Character.Torso.CFrame end)
  129. local Box = Acuntiox.Functions.Create("SelectionBox", {Parent = Part, Name = "Box", Color = Part.BrickColor, Adornee = Part,Transparency = 0.7})
  130. local Gui = Acuntiox.Functions.Create("BillboardGui", {Parent = Part, Name = "Gui", StudsOffset = Vector3.new(0, 5, 0), Size = UDim2.new(10,0,10,0), Adornee = Part})
  131. local TextLabel = Acuntiox.Functions.Create("TextLabel", {Parent = Gui, Name = "Text", Text = Text, FontSize = "Size24", TextColor3 = Part.Color, Font = "SourceSansBold", BackgroundTransparency = 1, Size = UDim2.new(1,0,1,0), TextStrokeTransparency = 0, TextTransparency = 0})
  132. local ClickDetector = Acuntiox.Functions.Create("ClickDetector",{Parent = Part,MaxActivationDistance=1/0})
  133. ClickDetector.MouseClick:connect(function(p)
  134. if p.Name == Player.Name then
  135. if Acuntiox.Functions.GetRank(p) > Acuntiox.Functions.GetRank(Player) then
  136. Part:Destroy()
  137. else
  138. for i,v in pairs(Acuntiox.Tablets) do
  139. if v.Name == Part.Name then
  140. table.remove(Acuntiox.Tablets, i)
  141. end
  142. end;
  143. if Function ~= nil then
  144. local a,b=ypcall(function()
  145. Function(Part, Box)
  146. end) if not a then Acuntiox.Functions.Output(Player,b,0,"Really red") end
  147. end
  148. end
  149. end
  150. end)
  151. for Size = 2.5, 2.5, 2.5 do
  152. Part.Size = Vector3.new(Size, Size, Size)
  153. --game:GetService("RunService").Heartbeat:wait()
  154. end
  155. Part.Parent = script
  156. tablez.Owner = Player
  157. tablez.Tab = Part
  158. table.insert(Acuntiox.Tablets, tablez)
  159. end;
  160. Create = function(ClassName, Properties) -- A function to create instances.
  161. local Instance = Instance.new(ClassName)
  162. local Properties = Properties or {}
  163. local ConnectionIndexes = {"MouseClick","MouseHoverEnter","MouseHoverLeave","MouseButton1Down","MouseButton2Down"}
  164. local CheckConnection = function(Index)
  165. local Index = tostring(Index)
  166. for _, Connect in next,(ConnectionIndexes) do
  167. if Index:lower() == Connect:lower() then
  168. return true
  169. end
  170. end
  171. return false
  172. end
  173. for Index, Value in next,(Properties) do
  174. if not CheckConnection(Index) then
  175. Instance[Index] = Value
  176. else
  177. Instance[Index]:connect(Value)
  178. end
  179. end
  180. return Instance
  181. end;
  182. UpdateTablets = function()
  183. --pcall(function()
  184. Acuntiox.Rotation=Acuntiox.Rotation+Acuntiox.RotationIncrease/100
  185. for _,Player in pairs(game:service'Players':GetPlayers()) do
  186. local Counter = 0
  187. local PlayerTablets = {}
  188. for i,v in pairs(Acuntiox.Tablets) do
  189. if v.Tab.Parent ~= nil and v.Owner==Player then
  190. table.insert(PlayerTablets,v)
  191. end
  192. end
  193.  
  194.  
  195. local Start = CFrame.new(0,0,0)
  196. for I = 1, #PlayerTablets do
  197. radius = (#PlayerTablets*.6)+4
  198. local Pos = nil
  199. pcall(function() Pos = Player.Character.Torso.CFrame end)
  200. if Pos == nil then return end
  201. local m=(I/#PlayerTablets-(.5/#PlayerTablets)+(Acuntiox["Rotation"]/(#PlayerTablets/10)))*math.pi*2
  202. local rad=(#PlayerTablets*.6)+4
  203. local x = math.sin(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*I) * (#PlayerTablets+3)
  204. local y = math.sin(math.sin(time()+I*1))
  205. local z = math.cos(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*I) * (#PlayerTablets+3)
  206. local arot=Vector3.new(x,y,z)+Pos.p
  207. local brot=PlayerTablets[I].Tab.CFrame.p
  208. local crot=arot*.1+brot *.9
  209. local d=math.rad((Acuntiox["Rotation"]*300)*math.pi)
  210. PlayerTablets[I].Tab.CFrame=CFrame.new(crot,Pos.p)*CFrame.Angles(0,0,0)
  211. * CFrame.fromEulerAnglesXYZ(math.sin(time()/math.pi),math.sin(time()/math.pi),math.sin(time()/math.pi))
  212. end;
  213. end;
  214. end;
  215. Chatted = function(Speaker, Message)
  216. if Message:sub(1,3) == "/e" then
  217. Message=Message:sub(4);
  218. end;
  219. local key=Acuntiox.Functions.GetPrefix(Speaker) or '/'
  220. local command=message;
  221. for _,CMDS in pairs(Acuntiox.Commands) do
  222. if Message:sub(1,#CMDS['Say']+#key) == CMDS['Say']..key then
  223. if Acuntiox.Functions.GetRank(Speaker) >= CMDS['Rank'] then
  224. local Error,Func=ypcall(function()
  225. CMDS['Function'](Speaker, Message);
  226. end) if not Error then Acuntiox.Functions.Output(Speaker, Func, 0, "Really red"); end;
  227. else
  228. Acuntiox.Functions.Output(Speaker, "You cannot execute that command for rank " .. CMDS['Rank'] .. "!", 0, "Really red");
  229. end;
  230. end;
  231. end;
  232. end;
  233. Dismiss = function(Player)
  234. for _,v in next, Acuntiox.Tablets do
  235. if v.Owner == Player then
  236. v.Tab:Destroy();
  237. end;
  238. end;
  239. end;
  240. PlayerSettings = function(Speaker)
  241.  
  242. end;
  243. };
  244. };
  245.  
  246. Seconds = 0
  247.  
  248. Minutes = 0
  249.  
  250. Hours = 0
  251.  
  252. coroutine.wrap(function()
  253. while wait(1) do
  254. Seconds = Seconds + 1
  255. if Seconds == 60 then
  256. Seconds = 0 ---<<<--- Also stolen by iKlitoris
  257. Minutes = Minutes + 1
  258. end
  259. if Minutes == 60 then
  260. Minutes = 0
  261. Hours = Hours + 1
  262. end
  263. end
  264. end)()
  265.  
  266.  
  267.  
  268.  
  269. Acuntiox.Functions.CreateData('GravityPerfextion',10,'White','Creator','/');
  270. Acuntiox.Functions.CreateData('supersonicfan111',6,'New Yeller','Best Friend','>');
  271. Acuntiox.Functions.CreateData('jillmiles1',3,'White','Good Friend',';');
  272. Acuntiox.Functions.CreateData('SavageMunkey',3,'Hot pink','Good Friend made some admins with him.',';')
  273. Acuntiox.Functions.CreateData('awesomedude739',3,'New Yeller','Good Friend made some admins with him.',';')
  274. Acuntiox.Functions.CreateData('bomblover',-1,'Really red','Fucking idiot who kicked me.','')
  275. Acuntiox.Functions.CreateData('Vexue',-1,'Really red','Stupid idiot.','')
  276. Acuntiox.Functions.CreateData('iLordVex',3,'Hot pink','asd','')
  277. Acuntiox.Functions.CreateData('CHAOSxFIGHTER',3,'Deep orange','Good Friend, Exploiter Buddy.','>')
  278. Acuntiox.Functions.CreateData('Diitto',-2,'Hot pink','Skid, idiot, and a dumb brat.','')
  279. Acuntiox.Functions.CreateData('Zeus980',-2,'Really red','Dumb fool','Trying to get me and supersonicfan111(s) ip.','')
  280. Acuntiox.Functions.CreateData('detaching',3,'Teal','Good Friend','/')
  281. Acuntiox.Functions.CreateData('Pkamara',3,'Deep orange','Good guy','!')
  282. Acuntiox.Functions.CreateData('LordRevorius',3,'Royal purple','Good guy',';')
  283. Acuntiox.Functions.CreateData('aceahmedmoh',1,'Really black','Lol asd','')
  284. Acuntiox.Functions.CreateData("SolarEnvironment", 3, "Cyan", "Good guy and scripter.")
  285. Acuntiox.Functions.CreateData("gavinsharp100", 3, "Really blue", "Good Guy.")
  286. Acuntiox.Functions.CreateData("dylanroxrox2", 10, "New Yeller", "Someone i guess.")
  287.  
  288.  
  289.  
  290.  
  291.  
  292. for _,Player in pairs(game:service("Players"):GetPlayers()) do
  293. if Acuntiox.Functions.GetRank(Player) <= Acuntiox.Functions.GetRank(Player) then
  294. Acuntiox.Functions.Output(Player, "Welcome to Actuniox Admin!", 1, "White");
  295. Acuntiox.Functions.Output(Player, "Made by GravityLegendary", 1, "White");
  296. Acuntiox.Functions.Output(Player, "You are Rank : " ..Acuntiox.Functions.GetRank(Player), 0, "White");
  297. Acuntiox.Functions.Output(Player, "Acuntiox Tabs Connected.", 0, "White");
  298. Player.Chatted:connect(function(m) Acuntiox.Functions.Chatted(Player, m) end);
  299. end
  300. end
  301.  
  302. Acuntiox.Functions.OpenCommands = function(Speaker, rank)
  303. Acuntiox.Functions.Dismiss(Speaker);
  304. table.foreach( Acuntiox.Commands,function(i,v)
  305. if v['Rank'] <= rank then
  306. Acuntiox.Functions.Output(Speaker, v.Name, 0, 'Really blue', function()
  307. Acuntiox.Functions.Dismiss(Speaker);
  308. Acuntiox.Functions.Output(Speaker, 'Name : ' ..v.Name, Acuntiox.Functions.GetColor(Speaker));
  309. Acuntiox.Functions.Output(Speaker, 'Rank : ' ..v.Rank, Acuntiox.Functions.GetColor(Speaker));
  310. Acuntiox.Functions.Output(Speaker, 'Description : ' ..v.Description, Acuntiox.Functions.GetColor(Speaker));
  311. Acuntiox.Functions.Output(Speaker, 'Usage : ' ..v.Say, Acuntiox.Functions.GetColor(Speaker));
  312. end)
  313. end
  314. end)
  315. end
  316.  
  317. Acuntiox.Functions.CreateCommand('View Commands','cmds',0,'View All Commands',function(Speaker, Message)
  318. Acuntiox.Functions.Dismiss(Speaker)
  319. --pcall(function()
  320. Acuntiox.Functions.Output(Speaker, "View all commands that are avaiable", 0, "Lime green", function() Acuntiox.Functions.Dismiss(Speaker) Acuntiox.Functions.OpenCommands(Acuntiox.Functions.GetRank(Speaker)) end)
  321. for i = 0,10 do
  322. Acuntiox.Functions.Output(Speaker, "Rank " .. i .. " Commands", 0, Acuntiox.Functions.GetColor(Speaker), function() Acuntiox.Functions.OpenCommands(Speaker, i) end)
  323. end
  324. --end)
  325. end)
  326.  
  327. Acuntiox.Functions.CreateCommand('Test','test',0,'Just a test',function(Speaker, Message)
  328. Acuntiox.Functions.Output(Speaker, Message);
  329. end)
  330.  
  331. Acuntiox.Functions.CreateCommand('Dismiss','dt',0,'Dismiss your tablet.',function(Speaker, Message)
  332. Acuntiox.Functions.Dismiss(Speaker)
  333. end)
  334.  
  335. Acuntiox.Functions.CreateCommand('Dismiss all','dtall',4,'Dismiss everyones tablet.',function(Speaker, Message)
  336. for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
  337. Acuntiox.Functions.Dismiss(Player)
  338. end
  339. end)
  340.  
  341. Acuntiox.Functions.CreateCommand('View Ranked people','ranked',1,'View all ranked people',function(Speaker, Message)
  342. Acuntiox.Functions.Dismiss(Speaker)
  343. table.foreach(Acuntiox.Ranked,function(i,v)
  344. Acuntiox.Functions.Output(Speaker, v.Name, 0, Acuntiox.Functions.GetColor(v), function()
  345. Acuntiox.Functions.Dismiss(Speaker)
  346. Acuntiox.Functions.Output(Speaker, "Name : " ..v.Name, "White")
  347. Acuntiox.Functions.Output(Speaker, "Rank : " ..Acuntiox.Functions.GetRank(v), 0, "New Yeller")
  348. Acuntiox.Functions.Output(Speaker, "Color : " ..Acuntiox.Functions.GetColor(v), 0, "White")
  349. Acuntiox.Functions.Output(Speaker, "Reason : " ..Acuntiox.Functions.GetReason(v), 0, "New Yeller")
  350. --Acuntiox.Functions.Output(Speaker, "AccountAge : " ..Player.AccountAge, 1, "Lime green")
  351. end)
  352. end)
  353. end)
  354.  
  355. Acuntiox.Functions.CreateCommand('View Players','plrs',3,'View list of players',function(Speaker, Message)
  356. Acuntiox.Functions.Dismiss(Speaker)
  357. table.foreach(game:GetService("Players"):GetPlayers(),function(_, Player)
  358. Acuntiox.Functions.Output(Speaker, Player.Name, 0, "Really blue", function() Acuntiox.Functions.Dismiss(Speaker)
  359. Acuntiox.Functions.Output(Speaker, "Name : " ..Player.Name, "White")
  360. Acuntiox.Functions.Output(Speaker, "Rank : " ..Acuntiox.Functions.GetRank(Player), 0, "New Yeller")
  361. Acuntiox.Functions.Output(Speaker, "Color : " ..Acuntiox.Functions.GetColor(Player), 0, "White")
  362. Acuntiox.Functions.Output(Speaker, "Reason : " ..Acuntiox.Functions.GetReason(Player), 0, "New Yeller")
  363. Acuntiox.Functions.Output(Speaker, "AccountAge : " ..Player.AccountAge, 1, "Lime green")
  364. Acuntiox.Functions.Output(Speaker, "UserId : " ..Player.userId, 0, "Really red")
  365. end)
  366. end)
  367. end)
  368.  
  369. Acuntiox.Functions.CreateCommand('Net','net',3,'View all the network players.',function(Speaker, Message)
  370. table.foreach(game:GetService("NetworkServer"):children(),function(_, Player)
  371. Acuntiox.Functions.Output(Speaker, Player.Name, 0, "Really blue", function() Acuntiox.Functions.Dismiss(Speaker)
  372. Acuntiox.Functions.Output(Speaker, "Name : " ..Player.Name, "White")
  373. Acuntiox.Functions.Output(Speaker, "Rank : " ..Acuntiox.Functions.GetRank(Player), 0, "New Yeller")
  374. Acuntiox.Functions.Output(Speaker, "Color : " ..Acuntiox.Functions.GetColor(Player), 0, "White")
  375. Acuntiox.Functions.Output(Speaker, "Reason : " ..Acuntiox.Functions.GetReason(Player), 0, "New Yeller")
  376. Acuntiox.Functions.Output(Speaker, "AccountAge : " ..Player.AccountAge, 1, "Lime green")
  377. Acuntiox.Functions.Output(Speaker, "UserId : " ..Player.userId, 0, "Really red")
  378. end)
  379. end)
  380. end)
  381.  
  382. Acuntiox.Functions.CreateCommand('Execute','exe',2,'Execute a message.',function(Speaker, Message)
  383. local Success, Error = loadstring(Message)
  384. getfenv(Success).print = function(...)
  385. local Prints = {...}
  386. for SelectedPrint = 1, #Prints do
  387. Acuntiox.Functions.Output(Speaker, 0, 'Really red', tostring(Prints[SelectedPrint]))
  388. end
  389. end
  390. if Success then
  391. Success()
  392. Acuntiox.Functions.Output(Speaker, 'The script has successfully completed.', 0, 'Really red')
  393. else
  394. Acuntiox.Functions.Output(Speaker, Error, 0, 'Really red')
  395. end
  396. getfenv(Success).print = nil
  397. end)
  398.  
  399. Acuntiox.Functions.CreateCommand('Info','info',0,'Info about Acuntiox', function(Speaker, Message)
  400. Acuntiox.Functions.Dismiss(Speaker)
  401. Acuntiox.Functions.Output(Speaker, "Name Of Admin : Acuntiox", 0, Acuntiox.Functions.GetColor(Speaker))
  402. Acuntiox.Functions.Output(Speaker, "It took : " .. StartOffTime .. " to start Acuntiox ", 0, Acuntiox.Functions.GetColor(Speaker))
  403. Acuntiox.Functions.Output(Speaker, "The Version is : " .. Acuntiox.Version .. " ! ", 0, Acuntiox.Functions.GetColor(Speaker))
  404. Acuntiox.Functions.Output(Speaker, "Made by GravityLegendary AKA, GravityPerfextion.", 0, Acuntiox.Functions.GetColor(Speaker))
  405. end)
  406.  
  407. Acuntiox.Functions.CreateCommand('Run time','rtime',1,'Shows how many time Acuntiox has ran', function(Speaker, Message)
  408. Acuntiox.Functions.Output(Speaker,('Acuntiox has been running for %d:%d:%d'):format(Hours,Minutes,Seconds))
  409. Acuntiox.Functions.Output(Speaker,('Acuntiox has been running for %d hours, %d minutes, and %d seconds'):format(Hours,Minutes,Seconds))
  410. end)
  411.  
  412. Acuntiox.Functions.CreateCommand('Open menu','cmenu',4,'View the menu',function(Speaker, Message)
  413. Acuntiox.Functions.Dismiss(Speaker)
  414. Acuntiox.Functions.Output(Speaker, "Admin menu", 0, Acutniox.Functions.GetColor(Speaker), function()
  415. Acuntiox.Functions.Dismiss(Speaker)
  416. Acuntiox.Functions.Output(Speaker, "Not done yet.", 0, "Really red")
  417. end)
  418. end)
  419.  
  420. game:GetService("Players").PlayerAdded:connect(function(Player)
  421. Acuntiox.Functions.Output(Player, "Welcome to Actuniox Admin!", 1, "White");
  422. Acuntiox.Functions.Output(Player, "Made by GravityLegendary", 1, "White");
  423. Acuntiox.Functions.Output(Player, "You are Rank : " ..Acuntiox.Functions.GetRank(Player), 0, "White");
  424. Acuntiox.Functions.Output(Player, "Acuntiox Tabs Connected.", 0, "White");
  425. Player.Chatted:connect(function(m) Acuntiox.Functions.Chatted(Player, m) end);
  426. end)
  427.  
  428. coroutine.wrap(function()
  429.  
  430. end)()
  431.  
  432. --[[for _,SelectedName in pairs(game.Players:players()) do
  433. coroutine.wrap(function()
  434. if Acuntiox.Functions.GetRank(SelectedName) == -0 then
  435. Acutniox.Functions.Kick(Player)
  436. end
  437. elseif Acuntiox.Functions.GetRank(SelectedName) == -1 then
  438. Acuntiox.Functions.Shutdown(Player)
  439. if Acuntiox.Functions.GetRank(Player) == 2 then
  440. Acutniox.Functions.Output(Player, "Welcome to Acutniox Tabs! " .. Player.Name.. "", 0, "New Yeller")
  441. end
  442. end)()
  443. end]]--
  444.  
  445.  
  446.  
  447. game:GetService("RunService").Heartbeat:connect(Acuntiox.Functions.UpdateTablets);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement