Advertisement
DigitalZer3

Untitled

Oct 10th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.07 KB | None | 0 0
  1. --//BLANX Tabs made by PeroxDev, Edited by digitalzer3\\--
  2.  
  3. local ENF;
  4.  
  5. ENF = {
  6. Ranks = {
  7. [5] = "Creator";
  8. [4] = "Best-Friend";
  9. [3] = "Super-Mod";
  10. [2] = "Mod";
  11. [1] = "Player";
  12. [0] = "Member";
  13. [-1] = "Banned"; --//this one doesnt count.
  14. };
  15. Ranked = {
  16. {["Name"] = "DigitalZer3", ["Rank"] = 5, ["Reason"] = "Creator", ["Color"] = "Bright red"};
  17. {["Name"] = "KingRedDragon", ["Rank"] = 4, ["Reason"] = "Bestie.", ["Color"] = "Lime green"};
  18. };
  19. BannedFromENF = {
  20. {["Name"] = "Exanimatedn9dean", ["BannedRank"] = -1, ["BannedReason"] = "Idiot, i abosultey did nothing to him, 'ewing' me.", ["BannedColor"] = "Really black"};
  21. };
  22. Commands = {};
  23. Tablets = {};
  24. Prefix = '<';
  25. Suffix = '';
  26. Services = {
  27. Players = game:service'Players';
  28. Workspace = game:service'Workspace';
  29. Http = game:service'HttpService';
  30. Lighting = game:service'Lighting';
  31. Debris = game:service'Debris';
  32. RunService = game:service'RunService';
  33. };
  34. TabSettings = {
  35. Neon = true;
  36. Wires = false;
  37. TabletSize = 2;
  38. Size = Vector3.new(1.8, 1.8, 1.8);
  39. Size2 = Vector3.new(2, 2, 2);
  40. Rotation = 0;
  41. };
  42. Dismiss = function(Player)
  43. table.foreach(ENF.Tablets,function(i,v)
  44. if v.Player == Player then
  45. spawn(function()
  46. for _ = 0, .3, 0.01 do
  47. v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + .1
  48. v.Text.TextTransparency = v.Text.TextTransparency + .1
  49. v.Tab.Size = v.Tab.Size - Vector3.new(.1, .1, .1)
  50. --v.Tab2.Transparency = v.Tab2.Transparency + .1
  51. v.Tab.Transparency = v.Tab.Transparency + .05
  52. game['Run Service'].Heartbeat:wait()
  53. end--MESSY CODE >.>
  54. --//table.remove(ENF.Tablets, i)
  55. v.Tab:Destroy()
  56. --//v.Tab2:Destroy()
  57. --v.Tab2:Destroy()
  58. end)
  59. end-- u r an st00pid
  60. end)
  61. end;
  62. getRank = function(plr)
  63. if type(plr) == "userdata" then
  64. plr = plr.Name
  65. elseif type(plr) == "string" then
  66. plr = plr
  67. else
  68. plr = tostring(plr)
  69. end;
  70. for i,v in pairs(ENF.Ranked) do
  71. if v.Name == plr then
  72. return v.Rank;
  73. end;
  74. end;
  75. return 1;
  76. end;
  77. getColor = function(plr)
  78. if type(plr) == "userdata" then
  79. plr = plr.Name
  80. elseif type(plr) == "string" then
  81. plr = plr
  82. else
  83. plr = tostring(plr)
  84. end;
  85. for i,v in pairs(ENF.Ranked) do
  86. if v.Name == plr then
  87. return v['Color'];
  88. end;
  89. end;
  90. return 'Hot pink';
  91. end;
  92. setRank = function(plr, rank)
  93. if type(plr) == "userdata" then
  94. plr = plr.Name
  95. elseif type(plr) == "string" then
  96. plr = plr
  97. else
  98. plr = tostring(plr)
  99. end;
  100. for i,v in pairs(ENF.Ranked) do
  101. if v.Name == plr then
  102. v.Rank = tonumber(rank)
  103. end;
  104. end;
  105. end;
  106. setColor = function(plr, clr)
  107. if type(plr) == "userdata" then
  108. plr = plr.Name
  109. elseif type(plr) == "string" then
  110. plr = plr
  111. else
  112. plr = tostring(plr)
  113. end;
  114. for i,v in pairs(ENF.Ranked) do
  115. if v.Name == plr then
  116. v.Color = clr;
  117. end;
  118. end;
  119. end;
  120. Output = function(Player, Text, Color, Func)
  121. if Color == nil then Color = 'White'; end;
  122. if Text == nil then Text = Text; end;
  123. Text = 'BLANX_CORE\n'..Text;
  124. if Color == "Random" then Color = BrickColor.random(); end;
  125. if Player == nil then return false; end;
  126. local tab = Instance.new("Part", script);
  127. tab.CanCollide = false;
  128. tab.Locked = true;
  129. tab.Anchored = true;
  130. tab.BrickColor = BrickColor.new(Color);
  131. if type(Color) == "random" then Color = BrickColor.Random(); end;
  132. tab.Size = Vector3.new(ENF.TabSettings.TabletSize, ENF.TabSettings.TabletSize, ENF.TabSettings.TabletSize);
  133. tab.TopSurface = 0;
  134. tab.BottomSurface = 0;
  135. tab.FormFactor = 'Custom';
  136. tab.Transparency = .2;
  137. local sb = Instance.new("SelectionBox", tab);
  138. sb.Adornee = tab;
  139. sb.Color = BrickColor.new(Color);
  140. sb.Transparency = .9;
  141. local pl = Instance.new("PointLight", tab);
  142. pl.Range = 8;
  143. pl.Color = Color3.new(255, 255, 255);
  144. local gui = Instance.new("BillboardGui", tab);
  145. gui.Adornee = tab;
  146. gui.Size = UDim2.new(1, 0, 1, 0);
  147. gui.StudsOffset = Vector3.new(0, 3, 0);
  148. local bl = Instance.new("BlockMesh", tab);
  149. bl.Scale = Vector3.new(1, 1, 1);
  150. bl.Name = "asd+kek"; --//XD
  151. local tl = Instance.new("TextLabel", gui);
  152. tl.Text = Text;
  153. tl.Size = UDim2.new(1, 0, 1, 0);
  154. tl.BorderColor3 = Color3.new(0, 0, 0);
  155. tl.TextColor3 = tab.Color;
  156. tl.BackgroundTransparency = 1;
  157. tl.Font = "ArialBold";
  158. tl.FontSize = "Size18";
  159. tl.TextStrokeTransparency = 0;
  160. tl.TextTransparency = 0;
  161. local cd = Instance.new("ClickDetector", tab);
  162. cd.MaxActivationDistance = 1/0;
  163. cd.MouseClick:connect(function(p)
  164. if p.Name == Player.Name or ENF.getRank(p) > ENF.getRank(Plr) then
  165. tab:Destroy()
  166. --//tab2:Destroy()
  167. for i,v in pairs(ENF["Tablets"]) do
  168. if v.Name == tab.Name then
  169. table.remove(ENF["Tablets"], i)
  170. end
  171. end
  172. if Func ~= nil then
  173. a,b = ypcall(function()
  174. Func()
  175. end) if not a then ENF.Output(Player, b,"Really red") end
  176. end
  177. end
  178. end);
  179. for Size = 2.1, 2.1, 2.1 do
  180. tab.Size = Vector3.new(Size, Size, Size);
  181. end;
  182. tab.Parent = script;
  183.  
  184. --//tab2.Parent = script;
  185. pcall(function() tab.CFrame = Player.Character.Torso.CFrame; end);
  186. table.insert(ENF.Tablets,{Tab = tab,Tab2 = tab2, Player = Player, Text = tl});
  187. end;
  188. Rotate = function()
  189. --//ENF.TabSettings.Rotation=+ENF.TabSettings.Rotation+(0.65/250)
  190. for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
  191. local PT = {};
  192. for i,v in pairs(ENF.Tablets) do
  193. if v.Tab.Parent and v.Player == Player then
  194. table.insert(PT, v);
  195. end;
  196. end;
  197. for i = 1, #PT do
  198. local pos;
  199. pcall(function() pos = Player.Character.Torso.CFrame; end);
  200. if(pos) == nil then return end;
  201. local rad = (#PT*.6)+4;
  202. local m = (i / #PT - (.5 / #PT) + ENF.TabSettings.Rotation/(#PT/10)) * math.pi * 2
  203. local x = math.sin(m)*(rad);
  204. local y = math.sin(time()/.59+i+ENF.TabSettings.Rotation+time());
  205. local z = math.cos(m)*rad;
  206. local A=Vector3.new(x,y,z)+pos.p;
  207. local B=PT[i].Tab.CFrame.p;
  208. local C=A*.1+B*.9;
  209. local D=math.rad((ENF.TabSettings.Rotation*300)*math.pi);
  210. PT[i].Tab.CFrame=CFrame.new(C,pos.p)*CFrame.Angles(0,5,0)
  211. --//PT[i].Tab2.CFrame=CFrame.new(C,pos.p)*CFrame.Angles(0,5,0)
  212. end;
  213. end;
  214. end;
  215. addCommand = function(Name, Say, Desc, Rank, Func)
  216. table.insert(ENF.Commands,{Name = Name, Say = Say, Desc = Desc, Rank = Rank, Func = Func});
  217. end;
  218. OnChatted = function(plr, msg)
  219. for i,v in pairs(ENF.Commands) do
  220. if msg:sub(1,string.len(v['Say']..ENF.Prefix)) == v['Say']..ENF.Prefix then
  221. if ENF.getRank(plr) >= v.Rank then
  222. msg=msg:sub(1+#v['Say']+#ENF.Prefix);
  223. a,b = ypcall(function()
  224. v['Func'](plr, msg);
  225. end);
  226. if not a then warn(b); end;
  227. else
  228. ENF.Output(plr, "Your rank is too low to execute that command.", "Really red");
  229. end;
  230. end;
  231. end;
  232. end;
  233. dismissAll = function(plr)
  234. for _,Player in pairs(game:service'Players':GetPlayers()) do
  235. for i,v in pairs(ENF.Tablets) do
  236. v.Tab:Destroy()
  237. --//v.Tab2:Destroy()
  238. end;
  239. end;
  240. end;
  241. showCommands = function(plr, rank)
  242. for i,v in pairs(ENF.Commands) do
  243. if v.Rank <= rank then
  244. ENF.Output(plr, v.Name, "Bright red", function() ENF.Dismiss(plr)
  245. ENF.Output(plr, "Name:"..v.Name, "Bright red");
  246. ENF.Output(plr, "Rank:"..v.Rank, "Bright red");
  247. ENF.Output(plr, "Desc:"..v.Desc, "Bright red");
  248. ENF.Output(plr, "Usage:"..v.Say, "Bright red");
  249. end);
  250. end;
  251. end;
  252. end;
  253. Kick = function(plr)
  254. local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
  255. delay(1,function()
  256. pcall(function() workspace.RemoteEvent:remove() end)
  257. end)
  258. end;
  259. PlayerMenu = function(Speaker)
  260. for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
  261. ENF.Output(Speaker, Player.Name, ENF.getColor(Player), function() ENF.Dismiss(Speaker)
  262. ENF.Output(Speaker, "Name\n"..Player.Name, ENF.getColor(Player), ENF.getColor(Player))
  263. ENF.Output(Speaker, "Rank\n"..ENF.getRank(Player), ENF.getColor(Player), ENF.getColor(Player))
  264. ENF.Output(Speaker, "Color\n"..ENF.getColor(Player), ENF.getColor(Player), ENF.getColor(Player))
  265. ENF.Output(Speaker, "UserId\n"..Player.userId, "New Yeller");
  266. ENF.Output(Speaker, "AccountAge\n"..Player.AccountAge, "Really blue");
  267. --//ENF.Output(Speaker, "Settings", "New Yeller", function() ENF.Dismiss(Speaker)
  268. ENF.Output(Speaker, "Ban", "Really red", function() ENF.Dismiss(Speaker)
  269. local plrs=ENF.GetPlayerFromMessage(Player, Speaker);
  270. for i,v in pairs(plrs) do
  271. if v then
  272. ENF.Kick(ENF.setRank(v, -1))
  273. end;
  274. end;
  275. --//end);
  276. end);
  277. end);
  278. end;
  279. end;
  280. Explore = function(plr, obj)
  281. ENF.Dismiss(plr);
  282. if obj == nil then
  283. local MainServices = {
  284. game,
  285. game:GetService("Workspace"),
  286. game:GetService("Players"),
  287. game:GetService("Lighting"),
  288. game:GetService("ServerScriptService"),
  289. game:GetService("ServerStorage"),
  290. game:GetService("StarterGui"),
  291. game:GetService("HttpService"),
  292. game:GetService("Debris"),
  293. }
  294. if obj == nil then
  295. for _,v in pairs(MainServices) do
  296. ENF.Output(plr, v.Name, ENF.getColor(plr), function()
  297. ENF.Output(plr, "ClassName\n"..v.ClassName, ENF.getColor(plr))
  298. -- ENF.Output(plr, "Children\n"..#obj:GetChildren(), ENF.getColor(plr))
  299. ENF.Output(plr, "Currently Exploring\n"..obj:GetFullName(), ENF.getColor(plr))
  300. ENF.Explore(plr, v)
  301. end)
  302. end
  303. else
  304. for _,v in pairs(obj:GetChildren()) do
  305. ENF.Output(plr, v.Name, ENF.getColor(plr), function()
  306. ENF.Explore(plr, v)
  307. end)
  308. --//will add more soon. ;3
  309. end
  310. end
  311. end
  312. end;
  313. GetPlayerFromMessage = function(plr, msg, all)
  314. local plrs = {}
  315. if msg:match("^!") then
  316. return GetPlayers(plr, msg:sub(2), true)
  317. elseif msg == "me" then
  318. table.insert(plrs, plr)
  319. elseif msg == "all" then
  320. for _,v in pairs(game:service'Players':players()) do
  321. if all or ENF.getRank(v) <= ENF.getRank(plr) then
  322. table.insert(plrs, v)
  323. end
  324. end
  325. elseif msg == "others" then
  326. for _,v in pairs(game:service'Players':players()) do
  327. if v ~= plr then
  328. if all or ENF.getRank(v) <= ENF.getRank(plr) then
  329. table.insert(plrs, v)
  330. end
  331. end
  332. end
  333. else
  334. for _,v in pairs(game:service'Players':players()) do
  335. if v.Name:lower():sub(1,#msg) == msg:lower() then
  336. if all or ENF.getRank(v) <= ENF.getRank(plr) then
  337. table.insert(plrs, v)
  338. end
  339. end
  340. end
  341. end
  342. return plrs;
  343. end;
  344. setTabSize = function(vec1,vec2,vec3,Player)
  345. ENF.TabSettings.Size = Vector3.new(vec1,vec2,vec3)
  346. for i,v in next,ENF.Tablets do
  347. v.Tab.Size = Vector3.new(vec1,vec2,vec3)
  348. v.Tab2.Size = Vector3.new(vec1-0.2,vec2-0.2,vec3-0.2)
  349. end;
  350. end;
  351. };
  352.  
  353. ENF.addCommand('Show commands','cmds','Opens your cmds.',0,function(plr,m)
  354. ENF.Dismiss(plr)
  355. ENF.Output(plr, "All avaliable commands", "Lime green", function() ENF.Dismiss(plr) ENF.showCommands(plr,ENF.getRank(plr)) end)
  356. for i = 0,5 do
  357. ENF.Output(plr, "[" .. ENF.Ranks[i] .. "]".." commands", "Really blue", function() ENF.Dismiss(plr) ENF.showCommands(plr, i) end)
  358. end
  359. ENF.Output(plr, "You are rank\n "..ENF.getRank(plr), "New Yeller")
  360. ENF.Output(plr, "Dismiss", "Bright red", function() ENF.Dismiss(plr) end)
  361. end)
  362.  
  363. ENF.addCommand('Dismiss all','dall','Dismisses everyoenes tablet.',4,function(p,m)
  364. ENF.dismissAll(p)
  365. end)
  366.  
  367. ENF.addCommand('Dismiss','dt','Dismsises your tablet.',0,function(p,m)
  368. ENF.Dismiss(p)
  369. end)
  370.  
  371.  
  372. ENF.addCommand('Test','tst','Just a stupid random test xd.',0,function(p,m)
  373. ENF.Output(p,m)
  374. end)
  375.  
  376. ENF.addCommand('Set color','sc','Changes your color type.',0,function(p,m)
  377. ENF.setColor(p,m)
  378. ENF.Output(p, "Your Color is now\n"..tostring(ENF.getColor(p)), ENF.getColor(p))
  379. end)
  380.  
  381. ENF.addCommand('Player menu','plrs','Views list of players/their information>---ROBLOX Informations.',3,function(p,m)
  382. ENF.PlayerMenu(p)
  383. end)
  384.  
  385. ENF.addCommand('Explore','expl','Explores from services/Admin tablet.',4,function(p, m)
  386. ENF.Explore(p)
  387. end)
  388.  
  389. ENF.addCommand('Kick','kick','Kicks someone in-game.',3,function(p,m)
  390. local plrs=ENF.GetPlayerFromMessage(p,m)
  391. for i,v in pairs(plrs) do
  392. if v then
  393. ENF.Kick(game:service'Players'[v.Name])
  394. end
  395. end
  396. end)
  397.  
  398. ENF.addCommand('Respawn','rs','Respawns the chaacter.',1,function(p,m)
  399. local plrs=ENF.GetPlayerFromMessage(p,m)
  400. for i,v in pairs(plrs) do
  401. if v then
  402. v:LoadCharacter()
  403. end
  404. end
  405. end)
  406.  
  407. ENF.addCommand('Ban','b','Bans someone - in game.',3,function(p,m)
  408. local plrs=ENF.GetPlayerFromMessage(p,m)
  409. for i,v in pairs(plrs) do
  410. ENF.setRank(v, -1)
  411. ENF.Kick(game:service'Players'[v.Name])
  412. end
  413. ENF.Output(p, "Banned:"..v.Name, "Bright blue")
  414. end)
  415.  
  416. ENF.addCommand('Tabsize','tb','Changes your tabsize.',2,function(p,m)
  417. if m:lower() == "flat" then ENF.setTabSize(.2,4,3,p)
  418. elseif m:lower() == "cube" then ENF.setTabSize(2.2,2.2,2.2,p) end
  419. end)
  420.  
  421. game.Players.PlayerAdded:connect(function(p)
  422. for i,v in pairs(ENF.BannedFromENF) do
  423. if p.Name == v.Name then
  424. ENF.Kick(game:service'Players'[v.Name])
  425. end
  426. end
  427. end)
  428.  
  429. for _,Player in pairs(game:service'Players':GetPlayers()) do
  430. ENF.Output(Player, "Welcome " ..Player.Name.. "!\n", "Really red");
  431. ENF.Output(Player, "You are Rank:0", "Really red");
  432. ENF.Output(Player, "BLANX Tabs made by DigitalZer3", "Really red");
  433. Player.Chatted:connect(function(m)
  434. ENF.OnChatted(Player, m);
  435. end);
  436. end
  437. game:service'RunService'.Stepped:connect(ENF.Rotate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement