Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//BLANX Tabs made by PeroxDev, Edited by digitalzer3\\--
- local ENF;
- ENF = {
- Ranks = {
- [5] = "Creator";
- [4] = "Best-Friend";
- [3] = "Super-Mod";
- [2] = "Mod";
- [1] = "Player";
- [0] = "Member";
- [-1] = "Banned"; --//this one doesnt count.
- };
- Ranked = {
- {["Name"] = "DigitalZer3", ["Rank"] = 5, ["Reason"] = "Creator", ["Color"] = "Bright red"};
- {["Name"] = "KingRedDragon", ["Rank"] = 4, ["Reason"] = "Bestie.", ["Color"] = "Lime green"};
- };
- BannedFromENF = {
- {["Name"] = "Exanimatedn9dean", ["BannedRank"] = -1, ["BannedReason"] = "Idiot, i abosultey did nothing to him, 'ewing' me.", ["BannedColor"] = "Really black"};
- };
- Commands = {};
- Tablets = {};
- Prefix = '<';
- Suffix = '';
- Services = {
- Players = game:service'Players';
- Workspace = game:service'Workspace';
- Http = game:service'HttpService';
- Lighting = game:service'Lighting';
- Debris = game:service'Debris';
- RunService = game:service'RunService';
- };
- TabSettings = {
- Neon = true;
- Wires = false;
- TabletSize = 2;
- Size = Vector3.new(1.8, 1.8, 1.8);
- Size2 = Vector3.new(2, 2, 2);
- Rotation = 0;
- };
- Dismiss = function(Player)
- table.foreach(ENF.Tablets,function(i,v)
- if v.Player == Player then
- spawn(function()
- for _ = 0, .3, 0.01 do
- v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + .1
- v.Text.TextTransparency = v.Text.TextTransparency + .1
- v.Tab.Size = v.Tab.Size - Vector3.new(.1, .1, .1)
- --v.Tab2.Transparency = v.Tab2.Transparency + .1
- v.Tab.Transparency = v.Tab.Transparency + .05
- game['Run Service'].Heartbeat:wait()
- end--MESSY CODE >.>
- --//table.remove(ENF.Tablets, i)
- v.Tab:Destroy()
- --//v.Tab2:Destroy()
- --v.Tab2:Destroy()
- end)
- end-- u r an st00pid
- end)
- end;
- getRank = function(plr)
- if type(plr) == "userdata" then
- plr = plr.Name
- elseif type(plr) == "string" then
- plr = plr
- else
- plr = tostring(plr)
- end;
- for i,v in pairs(ENF.Ranked) do
- if v.Name == plr then
- return v.Rank;
- end;
- end;
- return 1;
- end;
- getColor = function(plr)
- if type(plr) == "userdata" then
- plr = plr.Name
- elseif type(plr) == "string" then
- plr = plr
- else
- plr = tostring(plr)
- end;
- for i,v in pairs(ENF.Ranked) do
- if v.Name == plr then
- return v['Color'];
- end;
- end;
- return 'Hot pink';
- end;
- setRank = function(plr, rank)
- if type(plr) == "userdata" then
- plr = plr.Name
- elseif type(plr) == "string" then
- plr = plr
- else
- plr = tostring(plr)
- end;
- for i,v in pairs(ENF.Ranked) do
- if v.Name == plr then
- v.Rank = tonumber(rank)
- end;
- end;
- end;
- setColor = function(plr, clr)
- if type(plr) == "userdata" then
- plr = plr.Name
- elseif type(plr) == "string" then
- plr = plr
- else
- plr = tostring(plr)
- end;
- for i,v in pairs(ENF.Ranked) do
- if v.Name == plr then
- v.Color = clr;
- end;
- end;
- end;
- Output = function(Player, Text, Color, Func)
- if Color == nil then Color = 'White'; end;
- if Text == nil then Text = Text; end;
- Text = 'BLANX_CORE\n'..Text;
- if Color == "Random" then Color = BrickColor.random(); end;
- if Player == nil then return false; end;
- local tab = Instance.new("Part", script);
- tab.CanCollide = false;
- tab.Locked = true;
- tab.Anchored = true;
- tab.BrickColor = BrickColor.new(Color);
- if type(Color) == "random" then Color = BrickColor.Random(); end;
- tab.Size = Vector3.new(ENF.TabSettings.TabletSize, ENF.TabSettings.TabletSize, ENF.TabSettings.TabletSize);
- tab.TopSurface = 0;
- tab.BottomSurface = 0;
- tab.FormFactor = 'Custom';
- tab.Transparency = .2;
- local sb = Instance.new("SelectionBox", tab);
- sb.Adornee = tab;
- sb.Color = BrickColor.new(Color);
- sb.Transparency = .9;
- local pl = Instance.new("PointLight", tab);
- pl.Range = 8;
- pl.Color = Color3.new(255, 255, 255);
- local gui = Instance.new("BillboardGui", tab);
- gui.Adornee = tab;
- gui.Size = UDim2.new(1, 0, 1, 0);
- gui.StudsOffset = Vector3.new(0, 3, 0);
- local bl = Instance.new("BlockMesh", tab);
- bl.Scale = Vector3.new(1, 1, 1);
- bl.Name = "asd+kek"; --//XD
- local tl = Instance.new("TextLabel", gui);
- tl.Text = Text;
- tl.Size = UDim2.new(1, 0, 1, 0);
- tl.BorderColor3 = Color3.new(0, 0, 0);
- tl.TextColor3 = tab.Color;
- tl.BackgroundTransparency = 1;
- tl.Font = "ArialBold";
- tl.FontSize = "Size18";
- tl.TextStrokeTransparency = 0;
- tl.TextTransparency = 0;
- local cd = Instance.new("ClickDetector", tab);
- cd.MaxActivationDistance = 1/0;
- cd.MouseClick:connect(function(p)
- if p.Name == Player.Name or ENF.getRank(p) > ENF.getRank(Plr) then
- tab:Destroy()
- --//tab2:Destroy()
- for i,v in pairs(ENF["Tablets"]) do
- if v.Name == tab.Name then
- table.remove(ENF["Tablets"], i)
- end
- end
- if Func ~= nil then
- a,b = ypcall(function()
- Func()
- end) if not a then ENF.Output(Player, b,"Really red") end
- end
- end
- end);
- for Size = 2.1, 2.1, 2.1 do
- tab.Size = Vector3.new(Size, Size, Size);
- end;
- tab.Parent = script;
- --//tab2.Parent = script;
- pcall(function() tab.CFrame = Player.Character.Torso.CFrame; end);
- table.insert(ENF.Tablets,{Tab = tab,Tab2 = tab2, Player = Player, Text = tl});
- end;
- Rotate = function()
- --//ENF.TabSettings.Rotation=+ENF.TabSettings.Rotation+(0.65/250)
- for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
- local PT = {};
- for i,v in pairs(ENF.Tablets) do
- if v.Tab.Parent and v.Player == Player then
- table.insert(PT, v);
- end;
- end;
- for i = 1, #PT do
- local pos;
- pcall(function() pos = Player.Character.Torso.CFrame; end);
- if(pos) == nil then return end;
- local rad = (#PT*.6)+4;
- local m = (i / #PT - (.5 / #PT) + ENF.TabSettings.Rotation/(#PT/10)) * math.pi * 2
- local x = math.sin(m)*(rad);
- local y = math.sin(time()/.59+i+ENF.TabSettings.Rotation+time());
- local z = math.cos(m)*rad;
- local A=Vector3.new(x,y,z)+pos.p;
- local B=PT[i].Tab.CFrame.p;
- local C=A*.1+B*.9;
- local D=math.rad((ENF.TabSettings.Rotation*300)*math.pi);
- PT[i].Tab.CFrame=CFrame.new(C,pos.p)*CFrame.Angles(0,5,0)
- --//PT[i].Tab2.CFrame=CFrame.new(C,pos.p)*CFrame.Angles(0,5,0)
- end;
- end;
- end;
- addCommand = function(Name, Say, Desc, Rank, Func)
- table.insert(ENF.Commands,{Name = Name, Say = Say, Desc = Desc, Rank = Rank, Func = Func});
- end;
- OnChatted = function(plr, msg)
- for i,v in pairs(ENF.Commands) do
- if msg:sub(1,string.len(v['Say']..ENF.Prefix)) == v['Say']..ENF.Prefix then
- if ENF.getRank(plr) >= v.Rank then
- msg=msg:sub(1+#v['Say']+#ENF.Prefix);
- a,b = ypcall(function()
- v['Func'](plr, msg);
- end);
- if not a then warn(b); end;
- else
- ENF.Output(plr, "Your rank is too low to execute that command.", "Really red");
- end;
- end;
- end;
- end;
- dismissAll = function(plr)
- for _,Player in pairs(game:service'Players':GetPlayers()) do
- for i,v in pairs(ENF.Tablets) do
- v.Tab:Destroy()
- --//v.Tab2:Destroy()
- end;
- end;
- end;
- showCommands = function(plr, rank)
- for i,v in pairs(ENF.Commands) do
- if v.Rank <= rank then
- ENF.Output(plr, v.Name, "Bright red", function() ENF.Dismiss(plr)
- ENF.Output(plr, "Name:"..v.Name, "Bright red");
- ENF.Output(plr, "Rank:"..v.Rank, "Bright red");
- ENF.Output(plr, "Desc:"..v.Desc, "Bright red");
- ENF.Output(plr, "Usage:"..v.Say, "Bright red");
- end);
- end;
- end;
- end;
- 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;
- PlayerMenu = function(Speaker)
- for _,Player in pairs(game:GetService("Players"):GetPlayers()) do
- ENF.Output(Speaker, Player.Name, ENF.getColor(Player), function() ENF.Dismiss(Speaker)
- ENF.Output(Speaker, "Name\n"..Player.Name, ENF.getColor(Player), ENF.getColor(Player))
- ENF.Output(Speaker, "Rank\n"..ENF.getRank(Player), ENF.getColor(Player), ENF.getColor(Player))
- ENF.Output(Speaker, "Color\n"..ENF.getColor(Player), ENF.getColor(Player), ENF.getColor(Player))
- ENF.Output(Speaker, "UserId\n"..Player.userId, "New Yeller");
- ENF.Output(Speaker, "AccountAge\n"..Player.AccountAge, "Really blue");
- --//ENF.Output(Speaker, "Settings", "New Yeller", function() ENF.Dismiss(Speaker)
- ENF.Output(Speaker, "Ban", "Really red", function() ENF.Dismiss(Speaker)
- local plrs=ENF.GetPlayerFromMessage(Player, Speaker);
- for i,v in pairs(plrs) do
- if v then
- ENF.Kick(ENF.setRank(v, -1))
- end;
- end;
- --//end);
- end);
- end);
- end;
- end;
- Explore = function(plr, obj)
- ENF.Dismiss(plr);
- if obj == nil then
- local MainServices = {
- game,
- game:GetService("Workspace"),
- game:GetService("Players"),
- game:GetService("Lighting"),
- game:GetService("ServerScriptService"),
- game:GetService("ServerStorage"),
- game:GetService("StarterGui"),
- game:GetService("HttpService"),
- game:GetService("Debris"),
- }
- if obj == nil then
- for _,v in pairs(MainServices) do
- ENF.Output(plr, v.Name, ENF.getColor(plr), function()
- ENF.Output(plr, "ClassName\n"..v.ClassName, ENF.getColor(plr))
- -- ENF.Output(plr, "Children\n"..#obj:GetChildren(), ENF.getColor(plr))
- ENF.Output(plr, "Currently Exploring\n"..obj:GetFullName(), ENF.getColor(plr))
- ENF.Explore(plr, v)
- end)
- end
- else
- for _,v in pairs(obj:GetChildren()) do
- ENF.Output(plr, v.Name, ENF.getColor(plr), function()
- ENF.Explore(plr, v)
- end)
- --//will add more soon. ;3
- end
- end
- end
- end;
- GetPlayerFromMessage = function(plr, msg, all)
- local plrs = {}
- if msg:match("^!") then
- return GetPlayers(plr, msg:sub(2), true)
- elseif msg == "me" then
- table.insert(plrs, plr)
- elseif msg == "all" then
- for _,v in pairs(game:service'Players':players()) do
- if all or ENF.getRank(v) <= ENF.getRank(plr) then
- table.insert(plrs, v)
- end
- end
- elseif msg == "others" then
- for _,v in pairs(game:service'Players':players()) do
- if v ~= plr then
- if all or ENF.getRank(v) <= ENF.getRank(plr) then
- table.insert(plrs, v)
- end
- end
- end
- else
- for _,v in pairs(game:service'Players':players()) do
- if v.Name:lower():sub(1,#msg) == msg:lower() then
- if all or ENF.getRank(v) <= ENF.getRank(plr) then
- table.insert(plrs, v)
- end
- end
- end
- end
- return plrs;
- end;
- setTabSize = function(vec1,vec2,vec3,Player)
- ENF.TabSettings.Size = Vector3.new(vec1,vec2,vec3)
- for i,v in next,ENF.Tablets do
- v.Tab.Size = Vector3.new(vec1,vec2,vec3)
- v.Tab2.Size = Vector3.new(vec1-0.2,vec2-0.2,vec3-0.2)
- end;
- end;
- };
- ENF.addCommand('Show commands','cmds','Opens your cmds.',0,function(plr,m)
- ENF.Dismiss(plr)
- ENF.Output(plr, "All avaliable commands", "Lime green", function() ENF.Dismiss(plr) ENF.showCommands(plr,ENF.getRank(plr)) end)
- for i = 0,5 do
- ENF.Output(plr, "[" .. ENF.Ranks[i] .. "]".." commands", "Really blue", function() ENF.Dismiss(plr) ENF.showCommands(plr, i) end)
- end
- ENF.Output(plr, "You are rank\n "..ENF.getRank(plr), "New Yeller")
- ENF.Output(plr, "Dismiss", "Bright red", function() ENF.Dismiss(plr) end)
- end)
- ENF.addCommand('Dismiss all','dall','Dismisses everyoenes tablet.',4,function(p,m)
- ENF.dismissAll(p)
- end)
- ENF.addCommand('Dismiss','dt','Dismsises your tablet.',0,function(p,m)
- ENF.Dismiss(p)
- end)
- ENF.addCommand('Test','tst','Just a stupid random test xd.',0,function(p,m)
- ENF.Output(p,m)
- end)
- ENF.addCommand('Set color','sc','Changes your color type.',0,function(p,m)
- ENF.setColor(p,m)
- ENF.Output(p, "Your Color is now\n"..tostring(ENF.getColor(p)), ENF.getColor(p))
- end)
- ENF.addCommand('Player menu','plrs','Views list of players/their information>---ROBLOX Informations.',3,function(p,m)
- ENF.PlayerMenu(p)
- end)
- ENF.addCommand('Explore','expl','Explores from services/Admin tablet.',4,function(p, m)
- ENF.Explore(p)
- end)
- ENF.addCommand('Kick','kick','Kicks someone in-game.',3,function(p,m)
- local plrs=ENF.GetPlayerFromMessage(p,m)
- for i,v in pairs(plrs) do
- if v then
- ENF.Kick(game:service'Players'[v.Name])
- end
- end
- end)
- ENF.addCommand('Respawn','rs','Respawns the chaacter.',1,function(p,m)
- local plrs=ENF.GetPlayerFromMessage(p,m)
- for i,v in pairs(plrs) do
- if v then
- v:LoadCharacter()
- end
- end
- end)
- ENF.addCommand('Ban','b','Bans someone - in game.',3,function(p,m)
- local plrs=ENF.GetPlayerFromMessage(p,m)
- for i,v in pairs(plrs) do
- ENF.setRank(v, -1)
- ENF.Kick(game:service'Players'[v.Name])
- end
- ENF.Output(p, "Banned:"..v.Name, "Bright blue")
- end)
- ENF.addCommand('Tabsize','tb','Changes your tabsize.',2,function(p,m)
- if m:lower() == "flat" then ENF.setTabSize(.2,4,3,p)
- elseif m:lower() == "cube" then ENF.setTabSize(2.2,2.2,2.2,p) end
- end)
- game.Players.PlayerAdded:connect(function(p)
- for i,v in pairs(ENF.BannedFromENF) do
- if p.Name == v.Name then
- ENF.Kick(game:service'Players'[v.Name])
- end
- end
- end)
- for _,Player in pairs(game:service'Players':GetPlayers()) do
- ENF.Output(Player, "Welcome " ..Player.Name.. "!\n", "Really red");
- ENF.Output(Player, "You are Rank:0", "Really red");
- ENF.Output(Player, "BLANX Tabs made by DigitalZer3", "Really red");
- Player.Chatted:connect(function(m)
- ENF.OnChatted(Player, m);
- end);
- end
- game:service'RunService'.Stepped:connect(ENF.Rotate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement