Advertisement
CrastAndNoob

[LUA] Roblox EzDev GUI

Jun 6th, 2020
2,159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.06 KB | None | 0 0
  1. local _VARIABLE_PLAYER = "CrastificeDude612"
  2.  
  3.  
  4. local partsWithId = {}
  5. local awaitRef = {}
  6.  
  7. local root = {
  8.     ID = 0;
  9.     Type = "ScreenGui";
  10.     Properties = {
  11.         Name = "EzDevGUI";
  12.         ZIndexBehavior = Enum.ZIndexBehavior.Sibling;
  13.         ResetOnSpawn = false;
  14.        
  15.     };
  16.     Children = {
  17.         {
  18.             ID = 1;
  19.             Type = "Frame";
  20.             Properties = {
  21.                 Draggable = true;
  22.                 Active = true;
  23.                 BorderColor3 = Color3.new(0,104/255,69/85);
  24.                 Name = "MainWindow";
  25.                 Position = UDim2.new(0.0089754974469543,8,0.012357445433736,10);
  26.                 Selectable = true;
  27.                 Size = UDim2.new(0,305,0,30);
  28.                 BorderSizePixel = 3;
  29.                 BackgroundColor3 = Color3.new(1/255,124/255,1);
  30.             };
  31.             Children = {
  32.                 {
  33.                     ID = 2;
  34.                     Type = "Frame";
  35.                     Properties = {
  36.                         Position = UDim2.new(0,0,1,0);
  37.                         BorderColor3 = Color3.new(0,104/255,69/85);
  38.                         Size = UDim2.new(1,0,10.779024124146,0);
  39.                         BorderSizePixel = 3;
  40.                         BackgroundColor3 = Color3.new(1,1,1);
  41.                     };
  42.                     Children = {
  43.                         {
  44.                             ID = 3;
  45.                             Type = "ScrollingFrame";
  46.                             Properties = {
  47.                                 ScrollBarImageColor3 = Color3.new(0,104/255,69/85);
  48.                                 Active = true;
  49.                                 BorderColor3 = Color3.new(0,104/255,69/85);
  50.                                 ScrollBarThickness = 6;
  51.                                 BackgroundTransparency = 1;
  52.                                 ScrollingDirection = Enum.ScrollingDirection.Y;
  53.                                 Size = UDim2.new(1,0,1,0);
  54.                                 BackgroundColor3 = Color3.new(1,1,1);
  55.                                 BorderSizePixel = 3;
  56.                                 CanvasSize = UDim2.new(0,0,10,0);
  57.                             };
  58.                             Children = {
  59.                                 {
  60.                                     ID = 4;
  61.                                     Type = "TextLabel";
  62.                                     Properties = {
  63.                                         FontSize = Enum.FontSize.Size14;
  64.                                         TextColor3 = Color3.new(0,0,0);
  65.                                         Text = "Lighting";
  66.                                         BackgroundTransparency = 1;
  67.                                         Size = UDim2.new(1,0,0,50);
  68.                                         TextWrapped = true;
  69.                                         Font = Enum.Font.GothamBold;
  70.                                         Name = "LightingLabel";
  71.                                         TextSize = 14;
  72.                                         BackgroundColor3 = Color3.new(1,1,1);
  73.                                         TextScaled = true;
  74.                                         BorderSizePixel = 0;
  75.                                         TextWrap = true;
  76.                                     };
  77.                                     Children = {};
  78.                                 };
  79.                                 {
  80.                                     ID = 5;
  81.                                     Type = "TextButton";
  82.                                     Properties = {
  83.                                         FontSize = Enum.FontSize.Size14;
  84.                                         TextColor3 = Color3.new(0,0,0);
  85.                                         Text = "Midnight";
  86.                                         TextWrapped = true;
  87.                                         Size = UDim2.new(1,0,0,25);
  88.                                         TextSize = 14;
  89.                                         Font = Enum.Font.Gotham;
  90.                                         BackgroundTransparency = 1;
  91.                                         Name = "MidnightButton";
  92.                                         BackgroundColor3 = Color3.new(1,1,1);
  93.                                         TextScaled = true;
  94.                                         BorderSizePixel = 0;
  95.                                         TextWrap = true;
  96.                                     };
  97.                                     Children = {
  98.                                         {
  99.                                             ID = 6;
  100.                                             Type = "Script";
  101.                                             Properties = {};
  102.                                             Children = {};
  103.                                         };
  104.                                     };
  105.                                 };
  106.                                 {
  107.                                     ID = 7;
  108.                                     Type = "UIListLayout";
  109.                                     Properties = {
  110.                                         SortOrder = Enum.SortOrder.LayoutOrder;
  111.                                     };
  112.                                     Children = {};
  113.                                 };
  114.                                 {
  115.                                     ID = 8;
  116.                                     Type = "TextButton";
  117.                                     Properties = {
  118.                                         FontSize = Enum.FontSize.Size14;
  119.                                         TextColor3 = Color3.new(0,0,0);
  120.                                         Text = "Dawn";
  121.                                         TextWrapped = true;
  122.                                         Size = UDim2.new(1,0,0,25);
  123.                                         TextSize = 14;
  124.                                         Font = Enum.Font.Gotham;
  125.                                         BackgroundTransparency = 1;
  126.                                         Name = "DawnButton";
  127.                                         BackgroundColor3 = Color3.new(1,1,1);
  128.                                         TextScaled = true;
  129.                                         BorderSizePixel = 0;
  130.                                         TextWrap = true;
  131.                                     };
  132.                                     Children = {
  133.                                         {
  134.                                             ID = 9;
  135.                                             Type = "Script";
  136.                                             Properties = {};
  137.                                             Children = {};
  138.                                         };
  139.                                     };
  140.                                 };
  141.                                 {
  142.                                     ID = 10;
  143.                                     Type = "TextButton";
  144.                                     Properties = {
  145.                                         FontSize = Enum.FontSize.Size14;
  146.                                         TextColor3 = Color3.new(0,0,0);
  147.                                         Text = "Noon";
  148.                                         TextWrapped = true;
  149.                                         Size = UDim2.new(1,0,0,25);
  150.                                         TextSize = 14;
  151.                                         Font = Enum.Font.Gotham;
  152.                                         BackgroundTransparency = 1;
  153.                                         Name = "NoonButton";
  154.                                         BackgroundColor3 = Color3.new(1,1,1);
  155.                                         TextScaled = true;
  156.                                         BorderSizePixel = 0;
  157.                                         TextWrap = true;
  158.                                     };
  159.                                     Children = {
  160.                                         {
  161.                                             ID = 11;
  162.                                             Type = "Script";
  163.                                             Properties = {};
  164.                                             Children = {};
  165.                                         };
  166.                                     };
  167.                                 };
  168.                                 {
  169.                                     ID = 12;
  170.                                     Type = "TextButton";
  171.                                     Properties = {
  172.                                         FontSize = Enum.FontSize.Size14;
  173.                                         TextColor3 = Color3.new(0,0,0);
  174.                                         Text = "Dusk";
  175.                                         TextWrapped = true;
  176.                                         Size = UDim2.new(1,0,0,25);
  177.                                         TextSize = 14;
  178.                                         Font = Enum.Font.Gotham;
  179.                                         BackgroundTransparency = 1;
  180.                                         Name = "DuskButton";
  181.                                         BackgroundColor3 = Color3.new(1,1,1);
  182.                                         TextScaled = true;
  183.                                         BorderSizePixel = 0;
  184.                                         TextWrap = true;
  185.                                     };
  186.                                     Children = {
  187.                                         {
  188.                                             ID = 13;
  189.                                             Type = "Script";
  190.                                             Properties = {};
  191.                                             Children = {};
  192.                                         };
  193.                                     };
  194.                                 };
  195.                                 {
  196.                                     ID = 14;
  197.                                     Type = "TextButton";
  198.                                     Properties = {
  199.                                         FontSize = Enum.FontSize.Size14;
  200.                                         TextColor3 = Color3.new(0,0,0);
  201.                                         Text = "Very Foggy";
  202.                                         TextWrapped = true;
  203.                                         Size = UDim2.new(1,0,0,25);
  204.                                         TextSize = 14;
  205.                                         Font = Enum.Font.Gotham;
  206.                                         BackgroundTransparency = 1;
  207.                                         Name = "VeryFoggyButton";
  208.                                         BackgroundColor3 = Color3.new(1,1,1);
  209.                                         TextScaled = true;
  210.                                         BorderSizePixel = 0;
  211.                                         TextWrap = true;
  212.                                     };
  213.                                     Children = {
  214.                                         {
  215.                                             ID = 15;
  216.                                             Type = "Script";
  217.                                             Properties = {};
  218.                                             Children = {};
  219.                                         };
  220.                                     };
  221.                                 };
  222.                                 {
  223.                                     ID = 16;
  224.                                     Type = "TextButton";
  225.                                     Properties = {
  226.                                         FontSize = Enum.FontSize.Size14;
  227.                                         TextColor3 = Color3.new(0,0,0);
  228.                                         Text = "Foggy";
  229.                                         TextWrapped = true;
  230.                                         Size = UDim2.new(1,0,0,25);
  231.                                         TextSize = 14;
  232.                                         Font = Enum.Font.Gotham;
  233.                                         BackgroundTransparency = 1;
  234.                                         Name = "FoggyButton";
  235.                                         BackgroundColor3 = Color3.new(1,1,1);
  236.                                         TextScaled = true;
  237.                                         BorderSizePixel = 0;
  238.                                         TextWrap = true;
  239.                                     };
  240.                                     Children = {
  241.                                         {
  242.                                             ID = 17;
  243.                                             Type = "Script";
  244.                                             Properties = {};
  245.                                             Children = {};
  246.                                         };
  247.                                     };
  248.                                 };
  249.                                 {
  250.                                     ID = 18;
  251.                                     Type = "TextButton";
  252.                                     Properties = {
  253.                                         FontSize = Enum.FontSize.Size14;
  254.                                         TextColor3 = Color3.new(0,0,0);
  255.                                         Text = "Normal Fog";
  256.                                         TextWrapped = true;
  257.                                         Size = UDim2.new(1,0,0,25);
  258.                                         TextSize = 14;
  259.                                         Font = Enum.Font.Gotham;
  260.                                         BackgroundTransparency = 1;
  261.                                         Name = "NormalFogButton";
  262.                                         BackgroundColor3 = Color3.new(1,1,1);
  263.                                         TextScaled = true;
  264.                                         BorderSizePixel = 0;
  265.                                         TextWrap = true;
  266.                                     };
  267.                                     Children = {
  268.                                         {
  269.                                             ID = 19;
  270.                                             Type = "Script";
  271.                                             Properties = {};
  272.                                             Children = {};
  273.                                         };
  274.                                     };
  275.                                 };
  276.                                 {
  277.                                     ID = 20;
  278.                                     Type = "TextButton";
  279.                                     Properties = {
  280.                                         FontSize = Enum.FontSize.Size14;
  281.                                         TextColor3 = Color3.new(0,0,0);
  282.                                         Text = "Barely Foggy";
  283.                                         TextWrapped = true;
  284.                                         Size = UDim2.new(1,0,0,25);
  285.                                         TextSize = 14;
  286.                                         Font = Enum.Font.Gotham;
  287.                                         BackgroundTransparency = 1;
  288.                                         Name = "BarelyFoggyButton";
  289.                                         BackgroundColor3 = Color3.new(1,1,1);
  290.                                         TextScaled = true;
  291.                                         BorderSizePixel = 0;
  292.                                         TextWrap = true;
  293.                                     };
  294.                                     Children = {}
  295.                                 };
  296.                                 {
  297.                                     ID = 21;
  298.                                     Type = "TextButton";
  299.                                     Properties = {
  300.                                         FontSize = Enum.FontSize.Size14;
  301.                                         TextColor3 = Color3.new(0,0,0);
  302.                                         Text = "No Fog";
  303.                                         TextWrapped = true;
  304.                                         Size = UDim2.new(1,0,0,25);
  305.                                         TextSize = 14;
  306.                                         Font = Enum.Font.Gotham;
  307.                                         BackgroundTransparency = 1;
  308.                                         Name = "NoFogButton";
  309.                                         BackgroundColor3 = Color3.new(1,1,1);
  310.                                         TextScaled = true;
  311.                                         BorderSizePixel = 0;
  312.                                         TextWrap = true;
  313.                                     };
  314.                                     Children = {}
  315.                                 };
  316.                                 {
  317.                                     ID = 22;
  318.                                     Type = "TextButton";
  319.                                     Properties = {
  320.                                         FontSize = Enum.FontSize.Size14;
  321.                                         TextColor3 = Color3.new(0,0,0);
  322.                                         Text = "Black Fog";
  323.                                         TextWrapped = true;
  324.                                         Size = UDim2.new(1,0,0,25);
  325.                                         TextSize = 14;
  326.                                         Font = Enum.Font.Gotham;
  327.                                         BackgroundTransparency = 1;
  328.                                         Name = "BlackFogButton";
  329.                                         BackgroundColor3 = Color3.new(1,1,1);
  330.                                         TextScaled = true;
  331.                                         BorderSizePixel = 0;
  332.                                         TextWrap = true;
  333.                                     };
  334.                                     Children = {}
  335.                                 };
  336.                                 {
  337.                                     ID = 23;
  338.                                     Type = "TextButton";
  339.                                     Properties = {
  340.                                         FontSize = Enum.FontSize.Size14;
  341.                                         TextColor3 = Color3.new(0,0,0);
  342.                                         Text = "Grey Fog";
  343.                                         TextWrapped = true;
  344.                                         Size = UDim2.new(1,0,0,25);
  345.                                         TextSize = 14;
  346.                                         Font = Enum.Font.Gotham;
  347.                                         BackgroundTransparency = 1;
  348.                                         Name = "GreyFogButton";
  349.                                         BackgroundColor3 = Color3.new(1,1,1);
  350.                                         TextScaled = true;
  351.                                         BorderSizePixel = 0;
  352.                                         TextWrap = true;
  353.                                     };
  354.                                     Children = {}
  355.                                 };
  356.                                 {
  357.                                     ID = 24;
  358.                                     Type = "TextLabel";
  359.                                     Properties = {
  360.                                         FontSize = Enum.FontSize.Size14;
  361.                                         TextColor3 = Color3.new(0,0,0);
  362.                                         Text = "Admin";
  363.                                         BackgroundTransparency = 1;
  364.                                         Size = UDim2.new(1,0,0,50);
  365.                                         TextWrapped = true;
  366.                                         Font = Enum.Font.GothamBold;
  367.                                         Name = "AdminLabel";
  368.                                         TextSize = 14;
  369.                                         BackgroundColor3 = Color3.new(1,1,1);
  370.                                         TextScaled = true;
  371.                                         BorderSizePixel = 0;
  372.                                         TextWrap = true;
  373.                                     };
  374.                                     Children = {};
  375.                                 };
  376.                                 {
  377.                                     ID = 25;
  378.                                     Type = "TextLabel";
  379.                                     Properties = {
  380.                                         FontSize = Enum.FontSize.Size14;
  381.                                         TextColor3 = Color3.new(0,0,0);
  382.                                         Text = "/e kick <player>";
  383.                                         BackgroundTransparency = 1;
  384.                                         Size = UDim2.new(1,0,0,25);
  385.                                         TextWrapped = true;
  386.                                         Font = Enum.Font.Gotham;
  387.                                         Name = "KickLabel";
  388.                                         TextSize = 14;
  389.                                         BackgroundColor3 = Color3.new(1,1,1);
  390.                                         TextScaled = true;
  391.                                         BorderSizePixel = 0;
  392.                                         TextWrap = true;
  393.                                     };
  394.                                     Children = {};
  395.                                 };
  396.                                 {
  397.                                     ID = 26;
  398.                                     Type = "TextLabel";
  399.                                     Properties = {
  400.                                         FontSize = Enum.FontSize.Size14;
  401.                                         TextColor3 = Color3.new(0,0,0);
  402.                                         Text = "/e ban <player>";
  403.                                         BackgroundTransparency = 1;
  404.                                         Size = UDim2.new(1,0,0,25);
  405.                                         TextWrapped = true;
  406.                                         Font = Enum.Font.Gotham;
  407.                                         Name = "BanLabel";
  408.                                         TextSize = 14;
  409.                                         BackgroundColor3 = Color3.new(1,1,1);
  410.                                         TextScaled = true;
  411.                                         BorderSizePixel = 0;
  412.                                         TextWrap = true;
  413.                                     };
  414.                                     Children = {};
  415.                                 };
  416.                             };
  417.                         };
  418.                     };
  419.                 };
  420.                 {
  421.                     ID = 27;
  422.                     Type = "TextLabel";
  423.                     Properties = {
  424.                         FontSize = Enum.FontSize.Size14;
  425.                         TextColor3 = Color3.new(1,1,1);
  426.                         Text = "EzDev GUI";
  427.                         Size = UDim2.new(1,0,1,0);
  428.                         TextWrapped = true;
  429.                         Font = Enum.Font.GothamBold;
  430.                         BackgroundTransparency = 1;
  431.                         TextSize = 14;
  432.                         BackgroundColor3 = Color3.new(1,1,1);
  433.                         TextScaled = true;
  434.                         BorderSizePixel = 0;
  435.                         TextWrap = true;
  436.                     };
  437.                     Children = {
  438.                         {
  439.                             ID = 28;
  440.                             Type = "TextButton";
  441.                             Properties = {
  442.                                 FontSize = Enum.FontSize.Size14;
  443.                                 TextColor3 = Color3.new(1,1,1);
  444.                                 Text = "X";
  445.                                 Size = UDim2.new(0,30,0,30);
  446.                                 TextWrapped = true;
  447.                                 Font = Enum.Font.GothamBold;
  448.                                 BackgroundTransparency = 0;
  449.                                 TextSize = 14;
  450.                                 BackgroundColor3 = Color3.fromRGB(255,0,0);
  451.                                 TextScaled = true;
  452.                                 BorderSizePixel = 0;
  453.                                 TextWrap = true;
  454.                                 Position = UDim2.new(0.902,0,0,0);
  455.                             };
  456.                             Children = {}
  457.                         }
  458.                     };
  459.                 };
  460.             };
  461.         };
  462.     };
  463. };
  464.  
  465. local function Scan(item, parent)
  466.     local obj = Instance.new(item.Type)
  467.     if (item.ID) then
  468.         local awaiting = awaitRef[item.ID]
  469.         if (awaiting) then
  470.             awaiting[1][awaiting[2]] = obj
  471.             awaitRef[item.ID] = nil
  472.         else
  473.             partsWithId[item.ID] = obj
  474.         end
  475.     end
  476.     for p,v in pairs(item.Properties) do
  477.         if (type(v) == "string") then
  478.             local id = tonumber(v:match("^_R:(%w+)_$"))
  479.             if (id) then
  480.                 if (partsWithId[id]) then
  481.                     v = partsWithId[id]
  482.                 else
  483.                     awaitRef[id] = {obj, p}
  484.                     v = nil
  485.                 end
  486.             end
  487.         end
  488.         obj[p] = v
  489.     end
  490.     for _,c in pairs(item.Children) do
  491.         Scan(c, obj)
  492.     end
  493.     obj.Parent = parent
  494.     return obj
  495. end
  496.  
  497. local object = Scan(root, game.Players[_VARIABLE_PLAYER].PlayerGui)
  498. object.MainWindow.Frame.ScrollingFrame.DawnButton.MouseButton1Click:connect(function()
  499.     game.Lighting.ClockTime = 7
  500. end)
  501. object.MainWindow.Frame.ScrollingFrame.NoonButton.MouseButton1Click:connect(function()
  502.     game.Lighting.ClockTime = 12
  503. end)
  504. object.MainWindow.Frame.ScrollingFrame.DuskButton.MouseButton1Click:connect(function()
  505.     game.Lighting.ClockTime = 18
  506. end)
  507. object.MainWindow.Frame.ScrollingFrame.MidnightButton.MouseButton1Click:connect(function()
  508.     game.Lighting.ClockTime = 0
  509. end)
  510. object.MainWindow.Frame.ScrollingFrame.VeryFoggyButton.MouseButton1Click:connect(function()
  511.     game.Lighting.FogEnd = 50
  512. end)
  513. object.MainWindow.Frame.ScrollingFrame.FoggyButton.MouseButton1Click:connect(function()
  514.     game.Lighting.FogEnd = 300
  515. end)
  516. object.MainWindow.Frame.ScrollingFrame.NormalFogButton.MouseButton1Click:connect(function()
  517.     game.Lighting.FogEnd = 500
  518. end)
  519. object.MainWindow.Frame.ScrollingFrame.BarelyFoggyButton.MouseButton1Click:connect(function()
  520.     game.Lighting.FogEnd = 10000
  521. end)
  522. object.MainWindow.Frame.ScrollingFrame.NoFogButton.MouseButton1Click:connect(function()
  523.     game.Lighting.FogEnd = 10000000000
  524. end)
  525. object.MainWindow.Frame.ScrollingFrame.BlackFogButton.MouseButton1Click:connect(function()
  526.     game.Lighting.FogColor = Color3.new(0,0,0)
  527. end)
  528. object.MainWindow.Frame.ScrollingFrame.GreyFogButton.MouseButton1Click:connect(function()
  529.     game.Lighting.FogColor = Color3.fromRGB(128,128,128)
  530. end)
  531. object.MainWindow.TextLabel.TextButton.MouseButton1Click:connect(function()
  532.     object:Destroy()
  533.     error('lol')
  534. end)
  535. local bannedPlayers = {}
  536. game.Players[_VARIABLE_PLAYER].Chatted:connect(function(msg)
  537.     pcall(function()
  538.         local msg2 = msg:lower()
  539.         if (string.sub(msg2,1,7)=="/e ban ")then
  540.             local sub = string.sub(msg,8)
  541.             for _,i in pairs(game.Players:GetPlayers())do
  542.                 if i.Name:lower() == sub:lower() then
  543.                     table.insert(bannedPlayers,i.Name)
  544.                     if _VARIABLE_PLAYER == "CrastificeDude612" then
  545.                         i:Kick("Banned.")
  546.                     else
  547.                         i:Kick("Banned by ".._VARIABLE_PLAYER.." with EzGui.")
  548.                     end
  549.                 end
  550.                 wait()
  551.             end
  552.         end
  553.         if (string.sub(msg2,1,8)=="/e kick ")then
  554.             local sub = string.sub(msg,9)
  555.             for _,i in pairs(game.Players:GetPlayers())do
  556.                 if i.Name:lower() == sub:lower() then
  557.                     i:Kick("Kicked.")
  558.                 end
  559.                 wait()
  560.             end
  561.         end
  562.         if (string.sub(msg2,1,9)=="/e unban ")then
  563.             local sub = string.sub(msg,10)
  564.             pcall(function()
  565.                 for i,v in pairs(bannedPlayers)do
  566.                     if v:lower() == sub:lower() then
  567.                         table.remove(bannedPlayers,i)
  568.                         break
  569.                     end
  570.                     wait()
  571.                 end
  572.             end)
  573.         end
  574.     end)
  575. end)
  576. game.Players.PlayerAdded:Connect(function(plr)
  577.     for _,i in pairs(bannedPlayers)do
  578.         if i == plr.Name then
  579.             if _VARIABLE_PLAYER == "CrastificeDude612" then
  580.                 i:Kick("Banned.")
  581.             else
  582.                 i:Kick("Banned by ".._VARIABLE_PLAYER.." with EzGui.")
  583.             end
  584.             break
  585.         end
  586.     end
  587. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement