Anonymouse10101

Electric State Darkrp (ESP)

May 6th, 2019
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 37.56 KB | None | 0 0
  1. --// The GetObjects function to load the core Gui
  2.     game:GetObjects("rbxassetid://02520334413")[1].Parent = game.StarterGui
  3.     game:GetObjects("rbxassetid://02520334413")[1].Parent = game.Players.LocalPlayer.PlayerGui
  4. --// The table to add new menu buttons (Only part you need to edit
  5.  
  6. menuButtons = {
  7.    
  8.     ["Money Printer ESP"] = {
  9.         ["Name"]        = "Money Printer ESP",
  10.         ["Submenu"]     = true,
  11.         ["Type"]        = "button",
  12.         ["Toggle"]      = true,
  13.         ["Script"]      = function(input1, input2)
  14.         end
  15.     },
  16.    
  17.     ["Shipment ESP GUNS"] = {
  18.         ["Name"]        = "Shipment ESP GUNS",
  19.         ["Submenu"]     = true,
  20.         ["Type"]        = "button",
  21.         ["Toggle"]      = true,
  22.         ["Script"]      = function(input1, input2)
  23.         end
  24.     },
  25.    
  26.     ["Shipment ESP OTHER"] = {
  27.         ["Name"]        = "Shipment ESP OTHER",
  28.         ["Submenu"]     = true,
  29.         ["Type"]        = "button",
  30.         ["Toggle"]      = true,
  31.         ["Script"]      = function(input1, input2)
  32.         end
  33.     },
  34.     --[[
  35.     ["Example Label"] = {
  36.         ["Name"]        = "Example Label",
  37.         ["Text"]        = "undefined_text",
  38.         ["Type"]        = "label",
  39.     },
  40.    
  41.     ["Example Text"] = {
  42.         ["Name"]        = "Example Text",
  43.         ["Text"]        = "undefined_text",
  44.         ["Type"]        = "text",
  45.         ["Script"]      = function(input1, input2)
  46.             print(input1)
  47.         end
  48.     }
  49.     ]]
  50. }
  51.  
  52. submenuButtons = {
  53.    
  54.     ["Standard Printers"] = {
  55.         ["Name"]        = "Standard Printers",
  56.         ["Parent"]      = "Money Printer ESP",
  57.         ["Toggle"]      = true,
  58.         ["Type"]        = "button",
  59.         ["Script"]      = function(input1, input2)
  60.             if workspace:FindFirstChild("t") then
  61.                 workspace.t:Destroy()
  62.                 for i,v in pairs(workspace.MoneyPrinters:GetChildren()) do
  63.                     if v.Name == "Money Printer Basic" then
  64.                         for i,b in pairs(v:GetChildren()) do
  65.                             if b.Name == "Main" then
  66.                                 for i,k in pairs(b:GetChildren()) do
  67.                                     if k:IsA("SurfaceGui") then
  68.                                         if k.AlwaysOnTop == true then
  69.                                             k:Destroy()
  70.                                         end
  71.                                     elseif k:IsA("BillboardGui") then
  72.                                         k:Destroy()
  73.                                     end
  74.                                 end
  75.                             end
  76.                         end
  77.                     end
  78.                 end    
  79.             else
  80.                 local toggled = Instance.new("BoolValue",workspace)
  81.                 toggled.Name = "t"
  82.                 for i,v in pairs(workspace.MoneyPrinters:GetChildren()) do
  83.                     if v.Name == "Money Printer Basic" then
  84.                         for i,b in pairs(v:GetChildren()) do
  85.                             if b.Name == "Main" then
  86.                                            
  87.                                 local bill = Instance.new("BillboardGui", b)
  88.                                 bill.AlwaysOnTop = true
  89.                                 bill.StudsOffset = Vector3.new(0,5,0)
  90.                                 bill.Adornee = b
  91.                                 bill.Size = UDim2.new(2,1,2)
  92.                                    
  93.                                 local text = Instance.new("TextLabel", bill)
  94.                                 text.BackgroundTransparency = 1
  95.                                 text.Size = UDim2.new(1,0,1,0)
  96.                                 text.Text = "Basic Printer | "..b.SurfaceGui["2"].Text
  97.                                 text.TextColor3 = Color3.fromRGB(255,255,255)
  98.                                 text.Font = "ArialBold"
  99.                                 text.TextSize = 15
  100.                        
  101.                                 local surface1 = Instance.new("SurfaceGui",b)
  102.                                 surface1.Face = "Top"
  103.                                 surface1.AlwaysOnTop = true
  104.                                 local frame1 = Instance.new("Frame",surface1)
  105.                                 frame1.Size = UDim2.new(1,0,1,0)
  106.                                 frame1.BackgroundTransparency = 0.2
  107.                                            
  108.                                 local surface2 = Instance.new("SurfaceGui",b)
  109.                                 surface2.Face = "Bottom"
  110.                                 surface2.AlwaysOnTop = true
  111.                                 local frame2 = Instance.new("Frame",surface2)
  112.                                 frame2.Size = UDim2.new(1,0,1,0)
  113.                                 frame2.BackgroundTransparency = 0.2
  114.                                            
  115.                                 local surface3 = Instance.new("SurfaceGui",b)
  116.                                 surface3.Face = "Left"
  117.                                 surface3.AlwaysOnTop = true
  118.                                 local frame3 = Instance.new("Frame",surface3)
  119.                                 frame3.Size = UDim2.new(1,0,1,0)
  120.                                 frame3.BackgroundTransparency = 0.2
  121.                                            
  122.                                 local surface4 = Instance.new("SurfaceGui",b)
  123.                                 surface4.Face = "Right"
  124.                                 surface4.AlwaysOnTop = true
  125.                                 local frame4 = Instance.new("Frame",surface4)
  126.                                 frame4.Size = UDim2.new(1,0,1,0)
  127.                                 frame4.BackgroundTransparency = 0.2
  128.                                            
  129.                                 local surface5 = Instance.new("SurfaceGui",b)
  130.                                 surface5.Face = "Front"
  131.                                 surface5.AlwaysOnTop = true
  132.                                 local frame5 = Instance.new("Frame",surface5)
  133.                                 frame5.Size = UDim2.new(1,0,1,0)
  134.                                 frame5.BackgroundTransparency = 0.2
  135.                                            
  136.                                 local surface6 = Instance.new("SurfaceGui",b)
  137.                                 surface6.Face = "Back"
  138.                                 surface6.AlwaysOnTop = true
  139.                                 local frame6 = Instance.new("Frame",surface6)
  140.                                 frame6.Size = UDim2.new(1,0,1,0)
  141.                                 frame6.BackgroundTransparency = 0.2
  142.                             end
  143.                         end
  144.                     end
  145.                 end
  146.             end
  147.         end
  148.     },
  149.    
  150.     ["Advanced Printers"] = {
  151.         ["Name"]        = "Advanced Printers",
  152.         ["Parent"]      = "Money Printer ESP",
  153.         ["Toggle"]      = true,
  154.         ["Type"]        = "button",
  155.         ["Script"]      = function(input1, input2)
  156.             if workspace:FindFirstChild("tb") then
  157.                 workspace.tb:Destroy()
  158.                 for i,v in pairs(workspace.MoneyPrinters:GetChildren()) do
  159.                     if v.Name == "Money Printer Advanced" then
  160.                         for i,b in pairs(v:GetChildren()) do
  161.                             if b.Name == "Main" then
  162.                                 for i,k in pairs(b:GetChildren()) do
  163.                                     if k:IsA("SurfaceGui") then
  164.                                         if k.AlwaysOnTop == true then
  165.                                             k:Destroy()
  166.                                         end
  167.                                     elseif k:IsA("BillboardGui") then
  168.                                         k:Destroy()
  169.                                     end
  170.                                 end
  171.                             end
  172.                         end
  173.                     end
  174.                 end    
  175.             else
  176.                 local toggled = Instance.new("BoolValue",workspace)
  177.                 toggled.Name = "tb"
  178.                 for i,v in pairs(workspace.MoneyPrinters:GetChildren()) do
  179.                     if v.Name == "Money Printer Advanced" then
  180.                         for i,b in pairs(v:GetChildren()) do
  181.                             if b.Name == "Main" then
  182.                                            
  183.                                 local bill = Instance.new("BillboardGui", b)
  184.                                 bill.AlwaysOnTop = true
  185.                                 bill.StudsOffset = Vector3.new(0,5,0)
  186.                                 bill.Adornee = b
  187.                                 bill.Size = UDim2.new(2,1,2)
  188.                                    
  189.                                 local text = Instance.new("TextLabel", bill)
  190.                                 text.BackgroundTransparency = 1
  191.                                 text.Size = UDim2.new(1,0,1,0)
  192.                                 text.Text = "Advanced Printer | "..b.SurfaceGui["2"].Text
  193.                                 text.TextColor3 = Color3.fromRGB(255,0,0)
  194.                                 text.Font = "ArialBold"
  195.                                 text.TextSize = 15
  196.                        
  197.                                 local surface1 = Instance.new("SurfaceGui",b)
  198.                                 surface1.Face = "Top"
  199.                                 surface1.AlwaysOnTop = true
  200.                                 local frame1 = Instance.new("Frame",surface1)
  201.                                 frame1.Size = UDim2.new(1,0,1,0)
  202.                                 frame1.BackgroundTransparency = 0.2
  203.                                 frame1.BackgroundColor3 = Color3.fromRGB(255,0,0)
  204.                                            
  205.                                 local surface2 = Instance.new("SurfaceGui",b)
  206.                                 surface2.Face = "Bottom"
  207.                                 surface2.AlwaysOnTop = true
  208.                                 local frame2 = Instance.new("Frame",surface2)
  209.                                 frame2.Size = UDim2.new(1,0,1,0)
  210.                                 frame2.BackgroundTransparency = 0.2
  211.                                 frame2.BackgroundColor3 = Color3.fromRGB(255,0,0)
  212.                                            
  213.                                 local surface3 = Instance.new("SurfaceGui",b)
  214.                                 surface3.Face = "Left"
  215.                                 surface3.AlwaysOnTop = true
  216.                                 local frame3 = Instance.new("Frame",surface3)
  217.                                 frame3.Size = UDim2.new(1,0,1,0)
  218.                                 frame3.BackgroundTransparency = 0.2
  219.                                 frame3.BackgroundColor3 = Color3.fromRGB(255,0,0)
  220.                                            
  221.                                 local surface4 = Instance.new("SurfaceGui",b)
  222.                                 surface4.Face = "Right"
  223.                                 surface4.AlwaysOnTop = true
  224.                                 local frame4 = Instance.new("Frame",surface4)
  225.                                 frame4.Size = UDim2.new(1,0,1,0)
  226.                                 frame4.BackgroundTransparency = 0.2
  227.                                 frame4.BackgroundColor3 = Color3.fromRGB(255,0,0)
  228.                                            
  229.                                 local surface5 = Instance.new("SurfaceGui",b)
  230.                                 surface5.Face = "Front"
  231.                                 surface5.AlwaysOnTop = true
  232.                                 local frame5 = Instance.new("Frame",surface5)
  233.                                 frame5.Size = UDim2.new(1,0,1,0)
  234.                                 frame5.BackgroundTransparency = 0.2
  235.                                 frame5.BackgroundColor3 = Color3.fromRGB(255,0,0)
  236.                                            
  237.                                 local surface6 = Instance.new("SurfaceGui",b)
  238.                                 surface6.Face = "Back"
  239.                                 surface6.AlwaysOnTop = true
  240.                                 local frame6 = Instance.new("Frame",surface6)
  241.                                 frame6.Size = UDim2.new(1,0,1,0)
  242.                                 frame6.BackgroundTransparency = 0.2
  243.                                 frame6.BackgroundColor3 = Color3.fromRGB(255,0,0)
  244.                             end
  245.                         end
  246.                     end
  247.                 end
  248.             end
  249.         end
  250.     },
  251.        
  252.         ["Bloxy Cola Shipment"] = {
  253.         ["Name"]        = "Bloxy Cola Shipment",
  254.         ["Parent"]      = "Shipment ESP OTHER",
  255.         ["Toggle"]      = true,
  256.         ["Type"]        = "button",
  257.         ["Script"]      = function(input1, input2)
  258.             if workspace:FindFirstChild("x") then
  259.                 workspace.x:Destroy()
  260.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  261.                     if v.Name == "Bloxy Cola Shipment" then
  262.                         for i,b in pairs(v:GetChildren()) do
  263.                             if b.Name == "MeshPart" then
  264.                                 for i,k in pairs(b:GetChildren()) do
  265.                                     if k:IsA("SurfaceGui") then
  266.                                         if k.AlwaysOnTop == true then
  267.                                             k:Destroy()
  268.                                         end
  269.                                     elseif k:IsA("BillboardGui") then
  270.                                         k:Destroy()
  271.                                     end
  272.                                 end
  273.                             end
  274.                         end
  275.                     end
  276.                 end    
  277.             else
  278.                 local toggled = Instance.new("BoolValue",workspace)
  279.                 toggled.Name = "x"
  280.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  281.                     if v.Name == "Bloxy Cola Shipment" then
  282.                         for i,b in pairs(v:GetChildren()) do
  283.                             if b.Name == "MeshPart" then
  284.                                            
  285.                                 local bill = Instance.new("BillboardGui", b)
  286.                                 bill.AlwaysOnTop = true
  287.                                 bill.StudsOffset = Vector3.new(0,5,0)
  288.                                 bill.Adornee = b
  289.                                 bill.Size = UDim2.new(2,1,2)
  290.                                    
  291.                                 local text = Instance.new("TextLabel", bill)
  292.                                 text.BackgroundTransparency = 1
  293.                                 text.Size = UDim2.new(1,0,1,0)
  294.                                 text.Text = "Bloxy Cola | "..b.SurfaceGui.Uses.Text
  295.                                 text.TextColor3 = Color3.fromRGB(255,255,255)
  296.                                 text.Font = "ArialBold"
  297.                                 text.TextSize = 15
  298.                        
  299.                                 local surface1 = Instance.new("SurfaceGui",b)
  300.                                 surface1.Face = "Top"
  301.                                 surface1.AlwaysOnTop = true
  302.                                 local frame1 = Instance.new("Frame",surface1)
  303.                                 frame1.Size = UDim2.new(1,0,1,0)
  304.                                 frame1.BackgroundTransparency = 0.2
  305.                                            
  306.                                 local surface2 = Instance.new("SurfaceGui",b)
  307.                                 surface2.Face = "Bottom"
  308.                                 surface2.AlwaysOnTop = true
  309.                                 local frame2 = Instance.new("Frame",surface2)
  310.                                 frame2.Size = UDim2.new(1,0,1,0)
  311.                                 frame2.BackgroundTransparency = 0.2
  312.                                            
  313.                                 local surface3 = Instance.new("SurfaceGui",b)
  314.                                 surface3.Face = "Left"
  315.                                 surface3.AlwaysOnTop = true
  316.                                 local frame3 = Instance.new("Frame",surface3)
  317.                                 frame3.Size = UDim2.new(1,0,1,0)
  318.                                 frame3.BackgroundTransparency = 0.2
  319.                                            
  320.                                 local surface4 = Instance.new("SurfaceGui",b)
  321.                                 surface4.Face = "Right"
  322.                                 surface4.AlwaysOnTop = true
  323.                                 local frame4 = Instance.new("Frame",surface4)
  324.                                 frame4.Size = UDim2.new(1,0,1,0)
  325.                                 frame4.BackgroundTransparency = 0.2
  326.                                            
  327.                                 local surface5 = Instance.new("SurfaceGui",b)
  328.                                 surface5.Face = "Front"
  329.                                 surface5.AlwaysOnTop = true
  330.                                 local frame5 = Instance.new("Frame",surface5)
  331.                                 frame5.Size = UDim2.new(1,0,1,0)
  332.                                 frame5.BackgroundTransparency = 0.2
  333.                                            
  334.                                 local surface6 = Instance.new("SurfaceGui",b)
  335.                                 surface6.Face = "Back"
  336.                                 surface6.AlwaysOnTop = true
  337.                                 local frame6 = Instance.new("Frame",surface6)
  338.                                 frame6.Size = UDim2.new(1,0,1,0)
  339.                                 frame6.BackgroundTransparency = 0.2
  340.                             end
  341.                         end
  342.                     end
  343.                 end
  344.             end
  345.         end
  346.         },
  347.        
  348.         ["Deagle Shipment"] = {
  349.         ["Name"]        = "Deagle Shipment",
  350.         ["Parent"]      = "Shipment ESP GUNS",
  351.         ["Toggle"]      = true,
  352.         ["Type"]        = "button",
  353.         ["Script"]      = function(input1, input2)
  354.             if workspace:FindFirstChild("ye") then
  355.                 workspace.ye:Destroy()
  356.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  357.                     if v.Name == "Deagle Shipment" then
  358.                         for i,b in pairs(v:GetChildren()) do
  359.                             if b.Name == "MeshPart" then
  360.                                 for i,k in pairs(b:GetChildren()) do
  361.                                     if k:IsA("SurfaceGui") then
  362.                                         if k.AlwaysOnTop == true then
  363.                                             k:Destroy()
  364.                                         end
  365.                                     elseif k:IsA("BillboardGui") then
  366.                                         k:Destroy()
  367.                                     end
  368.                                 end
  369.                             end
  370.                         end
  371.                     end
  372.                 end    
  373.             else
  374.                 local toggled = Instance.new("BoolValue",workspace)
  375.                 toggled.Name = "ye"
  376.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  377.                     if v.Name == "Deagle Shipment" then
  378.                         for i,b in pairs(v:GetChildren()) do
  379.                             if b.Name == "MeshPart" then
  380.                                            
  381.                                 local bill = Instance.new("BillboardGui", b)
  382.                                 bill.AlwaysOnTop = true
  383.                                 bill.StudsOffset = Vector3.new(0,5,0)
  384.                                 bill.Adornee = b
  385.                                 bill.Size = UDim2.new(2,1,2)
  386.                                    
  387.                                 local text = Instance.new("TextLabel", bill)
  388.                                 text.BackgroundTransparency = 1
  389.                                 text.Size = UDim2.new(1,0,1,0)
  390.                                 text.Text = "Deagles | "..b.SurfaceGui.Uses.Text
  391.                                 text.TextColor3 = Color3.fromRGB(255,255,255)
  392.                                 text.Font = "ArialBold"
  393.                                 text.TextSize = 15
  394.                        
  395.                                 local surface1 = Instance.new("SurfaceGui",b)
  396.                                 surface1.Face = "Top"
  397.                                 surface1.AlwaysOnTop = true
  398.                                 local frame1 = Instance.new("Frame",surface1)
  399.                                 frame1.Size = UDim2.new(1,0,1,0)
  400.                                 frame1.BackgroundTransparency = 0.2
  401.                                            
  402.                                 local surface2 = Instance.new("SurfaceGui",b)
  403.                                 surface2.Face = "Bottom"
  404.                                 surface2.AlwaysOnTop = true
  405.                                 local frame2 = Instance.new("Frame",surface2)
  406.                                 frame2.Size = UDim2.new(1,0,1,0)
  407.                                 frame2.BackgroundTransparency = 0.2
  408.                                            
  409.                                 local surface3 = Instance.new("SurfaceGui",b)
  410.                                 surface3.Face = "Left"
  411.                                 surface3.AlwaysOnTop = true
  412.                                 local frame3 = Instance.new("Frame",surface3)
  413.                                 frame3.Size = UDim2.new(1,0,1,0)
  414.                                 frame3.BackgroundTransparency = 0.2
  415.                                            
  416.                                 local surface4 = Instance.new("SurfaceGui",b)
  417.                                 surface4.Face = "Right"
  418.                                 surface4.AlwaysOnTop = true
  419.                                 local frame4 = Instance.new("Frame",surface4)
  420.                                 frame4.Size = UDim2.new(1,0,1,0)
  421.                                 frame4.BackgroundTransparency = 0.2
  422.                                            
  423.                                 local surface5 = Instance.new("SurfaceGui",b)
  424.                                 surface5.Face = "Front"
  425.                                 surface5.AlwaysOnTop = true
  426.                                 local frame5 = Instance.new("Frame",surface5)
  427.                                 frame5.Size = UDim2.new(1,0,1,0)
  428.                                 frame5.BackgroundTransparency = 0.2
  429.                                            
  430.                                 local surface6 = Instance.new("SurfaceGui",b)
  431.                                 surface6.Face = "Back"
  432.                                 surface6.AlwaysOnTop = true
  433.                                 local frame6 = Instance.new("Frame",surface6)
  434.                                 frame6.Size = UDim2.new(1,0,1,0)
  435.                                 frame6.BackgroundTransparency = 0.2
  436.                             end
  437.                         end
  438.                     end
  439.                 end
  440.             end
  441.         end
  442.         },
  443.        
  444.         ["M1911 Shipment"] = {
  445.         ["Name"]        = "M1911 Shipment",
  446.         ["Parent"]      = "Shipment ESP GUNS",
  447.         ["Toggle"]      = true,
  448.         ["Type"]        = "button",
  449.         ["Script"]      = function(input1, input2)
  450.             if workspace:FindFirstChild("xe") then
  451.                 workspace.xe:Destroy()
  452.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  453.                     if v.Name == "M1911 Shipment" then
  454.                         for i,b in pairs(v:GetChildren()) do
  455.                             if b.Name == "MeshPart" then
  456.                                 for i,k in pairs(b:GetChildren()) do
  457.                                     if k:IsA("SurfaceGui") then
  458.                                         if k.AlwaysOnTop == true then
  459.                                             k:Destroy()
  460.                                         end
  461.                                     elseif k:IsA("BillboardGui") then
  462.                                         k:Destroy()
  463.                                     end
  464.                                 end
  465.                             end
  466.                         end
  467.                     end
  468.                 end    
  469.             else
  470.                 local toggled = Instance.new("BoolValue",workspace)
  471.                 toggled.Name = "xe"
  472.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  473.                     if v.Name == "M1911 Shipment" then
  474.                         for i,b in pairs(v:GetChildren()) do
  475.                             if b.Name == "MeshPart" then
  476.                                            
  477.                                 local bill = Instance.new("BillboardGui", b)
  478.                                 bill.AlwaysOnTop = true
  479.                                 bill.StudsOffset = Vector3.new(0,5,0)
  480.                                 bill.Adornee = b
  481.                                 bill.Size = UDim2.new(2,1,2)
  482.                                    
  483.                                 local text = Instance.new("TextLabel", bill)
  484.                                 text.BackgroundTransparency = 1
  485.                                 text.Size = UDim2.new(1,0,1,0)
  486.                                 text.Text = "M1911 | "..b.SurfaceGui.Uses.Text
  487.                                 text.TextColor3 = Color3.fromRGB(255,255,255)
  488.                                 text.Font = "ArialBold"
  489.                                 text.TextSize = 15
  490.                        
  491.                                 local surface1 = Instance.new("SurfaceGui",b)
  492.                                 surface1.Face = "Top"
  493.                                 surface1.AlwaysOnTop = true
  494.                                 local frame1 = Instance.new("Frame",surface1)
  495.                                 frame1.Size = UDim2.new(1,0,1,0)
  496.                                 frame1.BackgroundTransparency = 0.2
  497.                                            
  498.                                 local surface2 = Instance.new("SurfaceGui",b)
  499.                                 surface2.Face = "Bottom"
  500.                                 surface2.AlwaysOnTop = true
  501.                                 local frame2 = Instance.new("Frame",surface2)
  502.                                 frame2.Size = UDim2.new(1,0,1,0)
  503.                                 frame2.BackgroundTransparency = 0.2
  504.                                            
  505.                                 local surface3 = Instance.new("SurfaceGui",b)
  506.                                 surface3.Face = "Left"
  507.                                 surface3.AlwaysOnTop = true
  508.                                 local frame3 = Instance.new("Frame",surface3)
  509.                                 frame3.Size = UDim2.new(1,0,1,0)
  510.                                 frame3.BackgroundTransparency = 0.2
  511.                                            
  512.                                 local surface4 = Instance.new("SurfaceGui",b)
  513.                                 surface4.Face = "Right"
  514.                                 surface4.AlwaysOnTop = true
  515.                                 local frame4 = Instance.new("Frame",surface4)
  516.                                 frame4.Size = UDim2.new(1,0,1,0)
  517.                                 frame4.BackgroundTransparency = 0.2
  518.                                            
  519.                                 local surface5 = Instance.new("SurfaceGui",b)
  520.                                 surface5.Face = "Front"
  521.                                 surface5.AlwaysOnTop = true
  522.                                 local frame5 = Instance.new("Frame",surface5)
  523.                                 frame5.Size = UDim2.new(1,0,1,0)
  524.                                 frame5.BackgroundTransparency = 0.2
  525.                                            
  526.                                 local surface6 = Instance.new("SurfaceGui",b)
  527.                                 surface6.Face = "Back"
  528.                                 surface6.AlwaysOnTop = true
  529.                                 local frame6 = Instance.new("Frame",surface6)
  530.                                 frame6.Size = UDim2.new(1,0,1,0)
  531.                                 frame6.BackgroundTransparency = 0.2
  532.                             end
  533.                         end
  534.                     end
  535.                 end
  536.             end
  537.         end
  538.         },
  539.        
  540.         ["Lockpick Shipment"] = {
  541.         ["Name"]        = "Lockpick Shipment",
  542.         ["Parent"]      = "Shipment ESP OTHER",
  543.         ["Toggle"]      = true,
  544.         ["Type"]        = "button",
  545.         ["Script"]      = function(input1, input2)
  546.             if workspace:FindFirstChild("xea") then
  547.                 workspace.xea:Destroy()
  548.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  549.                     if v.Name == "Lockpick Shipment" then
  550.                         for i,b in pairs(v:GetChildren()) do
  551.                             if b.Name == "MeshPart" then
  552.                                 for i,k in pairs(b:GetChildren()) do
  553.                                     if k:IsA("SurfaceGui") then
  554.                                         if k.AlwaysOnTop == true then
  555.                                             k:Destroy()
  556.                                         end
  557.                                     elseif k:IsA("BillboardGui") then
  558.                                         k:Destroy()
  559.                                     end
  560.                                 end
  561.                             end
  562.                         end
  563.                     end
  564.                 end    
  565.             else
  566.                 local toggled = Instance.new("BoolValue",workspace)
  567.                 toggled.Name = "xea"
  568.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  569.                     if v.Name == "Lockpick Shipment" then
  570.                         for i,b in pairs(v:GetChildren()) do
  571.                             if b.Name == "MeshPart" then
  572.                                            
  573.                                 local bill = Instance.new("BillboardGui", b)
  574.                                 bill.AlwaysOnTop = true
  575.                                 bill.StudsOffset = Vector3.new(0,5,0)
  576.                                 bill.Adornee = b
  577.                                 bill.Size = UDim2.new(2,1,2)
  578.                                    
  579.                                 local text = Instance.new("TextLabel", bill)
  580.                                 text.BackgroundTransparency = 1
  581.                                 text.Size = UDim2.new(1,0,1,0)
  582.                                 text.Text = "Lockpicks | "..b.SurfaceGui.Uses.Text
  583.                                 text.TextColor3 = Color3.fromRGB(255,255,255)
  584.                                 text.Font = "ArialBold"
  585.                                 text.TextSize = 15
  586.                        
  587.                                 local surface1 = Instance.new("SurfaceGui",b)
  588.                                 surface1.Face = "Top"
  589.                                 surface1.AlwaysOnTop = true
  590.                                 local frame1 = Instance.new("Frame",surface1)
  591.                                 frame1.Size = UDim2.new(1,0,1,0)
  592.                                 frame1.BackgroundTransparency = 0.2
  593.                                            
  594.                                 local surface2 = Instance.new("SurfaceGui",b)
  595.                                 surface2.Face = "Bottom"
  596.                                 surface2.AlwaysOnTop = true
  597.                                 local frame2 = Instance.new("Frame",surface2)
  598.                                 frame2.Size = UDim2.new(1,0,1,0)
  599.                                 frame2.BackgroundTransparency = 0.2
  600.                                            
  601.                                 local surface3 = Instance.new("SurfaceGui",b)
  602.                                 surface3.Face = "Left"
  603.                                 surface3.AlwaysOnTop = true
  604.                                 local frame3 = Instance.new("Frame",surface3)
  605.                                 frame3.Size = UDim2.new(1,0,1,0)
  606.                                 frame3.BackgroundTransparency = 0.2
  607.                                            
  608.                                 local surface4 = Instance.new("SurfaceGui",b)
  609.                                 surface4.Face = "Right"
  610.                                 surface4.AlwaysOnTop = true
  611.                                 local frame4 = Instance.new("Frame",surface4)
  612.                                 frame4.Size = UDim2.new(1,0,1,0)
  613.                                 frame4.BackgroundTransparency = 0.2
  614.                                            
  615.                                 local surface5 = Instance.new("SurfaceGui",b)
  616.                                 surface5.Face = "Front"
  617.                                 surface5.AlwaysOnTop = true
  618.                                 local frame5 = Instance.new("Frame",surface5)
  619.                                 frame5.Size = UDim2.new(1,0,1,0)
  620.                                 frame5.BackgroundTransparency = 0.2
  621.                                            
  622.                                 local surface6 = Instance.new("SurfaceGui",b)
  623.                                 surface6.Face = "Back"
  624.                                 surface6.AlwaysOnTop = true
  625.                                 local frame6 = Instance.new("Frame",surface6)
  626.                                 frame6.Size = UDim2.new(1,0,1,0)
  627.                                 frame6.BackgroundTransparency = 0.2
  628.                             end
  629.                         end
  630.                     end
  631.                 end
  632.             end
  633.         end
  634.         },
  635.        
  636.         ["M16 Shipment"] = {
  637.         ["Name"]        = "M16 Shipment",
  638.         ["Parent"]      = "Shipment ESP GUNS",
  639.         ["Toggle"]      = true,
  640.         ["Type"]        = "button",
  641.         ["Script"]      = function(input1, input2)
  642.             if workspace:FindFirstChild("xOa") then
  643.                 workspace.xOa:Destroy()
  644.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  645.                     if v.Name == "M16 Shipment" then
  646.                         for i,b in pairs(v:GetChildren()) do
  647.                             if b.Name == "MeshPart" then
  648.                                 for i,k in pairs(b:GetChildren()) do
  649.                                     if k:IsA("SurfaceGui") then
  650.                                         if k.AlwaysOnTop == true then
  651.                                             k:Destroy()
  652.                                         end
  653.                                     elseif k:IsA("BillboardGui") then
  654.                                         k:Destroy()
  655.                                     end
  656.                                 end
  657.                             end
  658.                         end
  659.                     end
  660.                 end    
  661.             else
  662.                 local toggled = Instance.new("BoolValue",workspace)
  663.                 toggled.Name = "xOa"
  664.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  665.                     if v.Name == "M16 Shipment" then
  666.                         for i,b in pairs(v:GetChildren()) do
  667.                             if b.Name == "MeshPart" then
  668.                                            
  669.                                 local bill = Instance.new("BillboardGui", b)
  670.                                 bill.AlwaysOnTop = true
  671.                                 bill.StudsOffset = Vector3.new(0,5,0)
  672.                                 bill.Adornee = b
  673.                                 bill.Size = UDim2.new(2,1,2)
  674.                                    
  675.                                 local text = Instance.new("TextLabel", bill)
  676.                                 text.BackgroundTransparency = 1
  677.                                 text.Size = UDim2.new(1,0,1,0)
  678.                                 text.Text = "M16 | "..b.SurfaceGui.Uses.Text
  679.                                 text.TextColor3 = Color3.fromRGB(255,255,255)
  680.                                 text.TextSize = 15
  681.                                 text.Font = "ArialBold"
  682.                        
  683.                                 local surface1 = Instance.new("SurfaceGui",b)
  684.                                 surface1.Face = "Top"
  685.                                 surface1.AlwaysOnTop = true
  686.                                 local frame1 = Instance.new("Frame",surface1)
  687.                                 frame1.Size = UDim2.new(1,0,1,0)
  688.                                 frame1.BackgroundTransparency = 0.2
  689.                                            
  690.                                 local surface2 = Instance.new("SurfaceGui",b)
  691.                                 surface2.Face = "Bottom"
  692.                                 surface2.AlwaysOnTop = true
  693.                                 local frame2 = Instance.new("Frame",surface2)
  694.                                 frame2.Size = UDim2.new(1,0,1,0)
  695.                                 frame2.BackgroundTransparency = 0.2
  696.                                            
  697.                                 local surface3 = Instance.new("SurfaceGui",b)
  698.                                 surface3.Face = "Left"
  699.                                 surface3.AlwaysOnTop = true
  700.                                 local frame3 = Instance.new("Frame",surface3)
  701.                                 frame3.Size = UDim2.new(1,0,1,0)
  702.                                 frame3.BackgroundTransparency = 0.2
  703.                                            
  704.                                 local surface4 = Instance.new("SurfaceGui",b)
  705.                                 surface4.Face = "Right"
  706.                                 surface4.AlwaysOnTop = true
  707.                                 local frame4 = Instance.new("Frame",surface4)
  708.                                 frame4.Size = UDim2.new(1,0,1,0)
  709.                                 frame4.BackgroundTransparency = 0.2
  710.                                            
  711.                                 local surface5 = Instance.new("SurfaceGui",b)
  712.                                 surface5.Face = "Front"
  713.                                 surface5.AlwaysOnTop = true
  714.                                 local frame5 = Instance.new("Frame",surface5)
  715.                                 frame5.Size = UDim2.new(1,0,1,0)
  716.                                 frame5.BackgroundTransparency = 0.2
  717.                                            
  718.                                 local surface6 = Instance.new("SurfaceGui",b)
  719.                                 surface6.Face = "Back"
  720.                                 surface6.AlwaysOnTop = true
  721.                                 local frame6 = Instance.new("Frame",surface6)
  722.                                 frame6.Size = UDim2.new(1,0,1,0)
  723.                                 frame6.BackgroundTransparency = 0.2
  724.                             end
  725.                         end
  726.                     end
  727.                 end
  728.             end
  729.         end
  730.         },
  731.        
  732.         ["AK Shipment"] = {
  733.         ["Name"]        = "AK Shipment",
  734.         ["Parent"]      = "Shipment ESP GUNS",
  735.         ["Toggle"]      = true,
  736.         ["Type"]        = "button",
  737.         ["Script"]      = function(input1, input2)
  738.             if workspace:FindFirstChild("xua") then
  739.                 workspace.xua:Destroy()
  740.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  741.                     if v.Name == "AK Shipment" then
  742.                         for i,b in pairs(v:GetChildren()) do
  743.                             if b.Name == "MeshPart" then
  744.                                 for i,k in pairs(b:GetChildren()) do
  745.                                     if k:IsA("SurfaceGui") then
  746.                                         if k.AlwaysOnTop == true then
  747.                                             k:Destroy()
  748.                                         end
  749.                                     elseif k:IsA("BillboardGui") then
  750.                                         k:Destroy()
  751.                                     end
  752.                                 end
  753.                             end
  754.                         end
  755.                     end
  756.                 end    
  757.             else
  758.                 local toggled = Instance.new("BoolValue",workspace)
  759.                 toggled.Name = "xua"
  760.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  761.                     if v.Name == "AK Shipment" then
  762.                         for i,b in pairs(v:GetChildren()) do
  763.                             if b.Name == "MeshPart" then
  764.                                            
  765.                                 local bill = Instance.new("BillboardGui", b)
  766.                                 bill.AlwaysOnTop = true
  767.                                 bill.StudsOffset = Vector3.new(0,5,0)
  768.                                 bill.Adornee = b
  769.                                 bill.Size = UDim2.new(2,1,2)
  770.                                    
  771.                                 local text = Instance.new("TextLabel", bill)
  772.                                 text.BackgroundTransparency = 1
  773.                                 text.Size = UDim2.new(1,0,1,0)
  774.                                 text.Text = "AK | "..b.SurfaceGui.Uses.Text
  775.                                 text.TextColor3 = Color3.fromRGB(255,255,255)
  776.                                 text.TextSize = 15
  777.                                 text.Font = "ArialBold"
  778.                        
  779.                                 local surface1 = Instance.new("SurfaceGui",b)
  780.                                 surface1.Face = "Top"
  781.                                 surface1.AlwaysOnTop = true
  782.                                 local frame1 = Instance.new("Frame",surface1)
  783.                                 frame1.Size = UDim2.new(1,0,1,0)
  784.                                 frame1.BackgroundTransparency = 0.2
  785.                                            
  786.                                 local surface2 = Instance.new("SurfaceGui",b)
  787.                                 surface2.Face = "Bottom"
  788.                                 surface2.AlwaysOnTop = true
  789.                                 local frame2 = Instance.new("Frame",surface2)
  790.                                 frame2.Size = UDim2.new(1,0,1,0)
  791.                                 frame2.BackgroundTransparency = 0.2
  792.                                            
  793.                                 local surface3 = Instance.new("SurfaceGui",b)
  794.                                 surface3.Face = "Left"
  795.                                 surface3.AlwaysOnTop = true
  796.                                 local frame3 = Instance.new("Frame",surface3)
  797.                                 frame3.Size = UDim2.new(1,0,1,0)
  798.                                 frame3.BackgroundTransparency = 0.2
  799.                                            
  800.                                 local surface4 = Instance.new("SurfaceGui",b)
  801.                                 surface4.Face = "Right"
  802.                                 surface4.AlwaysOnTop = true
  803.                                 local frame4 = Instance.new("Frame",surface4)
  804.                                 frame4.Size = UDim2.new(1,0,1,0)
  805.                                 frame4.BackgroundTransparency = 0.2
  806.                                            
  807.                                 local surface5 = Instance.new("SurfaceGui",b)
  808.                                 surface5.Face = "Front"
  809.                                 surface5.AlwaysOnTop = true
  810.                                 local frame5 = Instance.new("Frame",surface5)
  811.                                 frame5.Size = UDim2.new(1,0,1,0)
  812.                                 frame5.BackgroundTransparency = 0.2
  813.                                            
  814.                                 local surface6 = Instance.new("SurfaceGui",b)
  815.                                 surface6.Face = "Back"
  816.                                 surface6.AlwaysOnTop = true
  817.                                 local frame6 = Instance.new("Frame",surface6)
  818.                                 frame6.Size = UDim2.new(1,0,1,0)
  819.                                 frame6.BackgroundTransparency = 0.2
  820.                             end
  821.                         end
  822.                     end
  823.                 end
  824.             end
  825.         end
  826.         },
  827.        
  828.         ["M4 Shipment"] = {
  829.         ["Name"]        = "M4 Shipment",
  830.         ["Parent"]      = "Shipment ESP GUNS",
  831.         ["Toggle"]      = true,
  832.         ["Type"]        = "button",
  833.         ["Script"]      = function(input1, input2)
  834.             if workspace:FindFirstChild("xpa") then
  835.                 workspace.xpa:Destroy()
  836.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  837.                     if v.Name == "M4 Shipment" then
  838.                         for i,b in pairs(v:GetChildren()) do
  839.                             if b.Name == "MeshPart" then
  840.                                 for i,k in pairs(b:GetChildren()) do
  841.                                     if k:IsA("SurfaceGui") then
  842.                                         if k.AlwaysOnTop == true then
  843.                                             k:Destroy()
  844.                                         end
  845.                                     elseif k:IsA("BillboardGui") then
  846.                                         k:Destroy()
  847.                                     end
  848.                                 end
  849.                             end
  850.                         end
  851.                     end
  852.                 end    
  853.             else
  854.                 local toggled = Instance.new("BoolValue",workspace)
  855.                 toggled.Name = "xpa"
  856.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  857.                     if v.Name == "M4 Shipment" then
  858.                         for i,b in pairs(v:GetChildren()) do
  859.                             if b.Name == "MeshPart" then
  860.                                            
  861.                                 local bill = Instance.new("BillboardGui", b)
  862.                                 bill.AlwaysOnTop = true
  863.                                 bill.StudsOffset = Vector3.new(0,5,0)
  864.                                 bill.Adornee = b
  865.                                 bill.Size = UDim2.new(2,1,2)
  866.                                    
  867.                                 local text = Instance.new("TextLabel", bill)
  868.                                 text.BackgroundTransparency = 1
  869.                                 text.Size = UDim2.new(1,0,1,0)
  870.                                 text.TextSize = 15
  871.                                 text.Text = "M4 Shipment | "..b.SurfaceGui.Uses.Text
  872.                                 text.TextColor3 = Color3.fromRGB(255,0,0)
  873.                                 text.Font = "ArialBold"
  874.                        
  875.                                 local surface1 = Instance.new("SurfaceGui",b)
  876.                                 surface1.Face = "Top"
  877.                                 surface1.AlwaysOnTop = true
  878.                                 local frame1 = Instance.new("Frame",surface1)
  879.                                 frame1.Size = UDim2.new(1,0,1,0)
  880.                                 frame1.BackgroundTransparency = 0.2
  881.                                 frame1.BackgroundColor3 = Color3.fromRGB(255,0,0)
  882.                                            
  883.                                 local surface2 = Instance.new("SurfaceGui",b)
  884.                                 surface2.Face = "Bottom"
  885.                                 surface2.AlwaysOnTop = true
  886.                                 local frame2 = Instance.new("Frame",surface2)
  887.                                 frame2.Size = UDim2.new(1,0,1,0)
  888.                                 frame2.BackgroundTransparency = 0.2
  889.                                 frame2.BackgroundColor3 = Color3.fromRGB(255,0,0)
  890.                                            
  891.                                 local surface3 = Instance.new("SurfaceGui",b)
  892.                                 surface3.Face = "Left"
  893.                                 surface3.AlwaysOnTop = true
  894.                                 local frame3 = Instance.new("Frame",surface3)
  895.                                 frame3.Size = UDim2.new(1,0,1,0)
  896.                                 frame3.BackgroundTransparency = 0.2
  897.                                 frame3.BackgroundColor3 = Color3.fromRGB(255,0,0)
  898.                                            
  899.                                 local surface4 = Instance.new("SurfaceGui",b)
  900.                                 surface4.Face = "Right"
  901.                                 surface4.AlwaysOnTop = true
  902.                                 local frame4 = Instance.new("Frame",surface4)
  903.                                 frame4.Size = UDim2.new(1,0,1,0)
  904.                                 frame4.BackgroundTransparency = 0.2
  905.                                 frame4.BackgroundColor3 = Color3.fromRGB(255,0,0)
  906.                                            
  907.                                 local surface5 = Instance.new("SurfaceGui",b)
  908.                                 surface5.Face = "Front"
  909.                                 surface5.AlwaysOnTop = true
  910.                                 local frame5 = Instance.new("Frame",surface5)
  911.                                 frame5.Size = UDim2.new(1,0,1,0)
  912.                                 frame5.BackgroundTransparency = 0.2
  913.                                 frame5.BackgroundColor3 = Color3.fromRGB(255,0,0)
  914.                                            
  915.                                 local surface6 = Instance.new("SurfaceGui",b)
  916.                                 surface6.Face = "Back"
  917.                                 surface6.AlwaysOnTop = true
  918.                                 local frame6 = Instance.new("Frame",surface6)
  919.                                 frame6.Size = UDim2.new(1,0,1,0)
  920.                                 frame6.BackgroundTransparency = 0.2
  921.                                 frame6.BackgroundColor3 = Color3.fromRGB(255,0,0)
  922.                             end
  923.                         end
  924.                     end
  925.                 end
  926.             end
  927.         end
  928.         },
  929.        
  930.         ["C4 Shipment"] = {
  931.         ["Name"]        = "C4 Shipment",
  932.         ["Parent"]      = "Shipment ESP OTHER",
  933.         ["Toggle"]      = true,
  934.         ["Type"]        = "button",
  935.         ["Script"]      = function(input1, input2)
  936.             if workspace:FindFirstChild("ypa") then
  937.                 workspace.ypa:Destroy()
  938.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  939.                     if v.Name == "C4 Shipment" then
  940.                         for i,b in pairs(v:GetChildren()) do
  941.                             if b.Name == "MeshPart" then
  942.                                 for i,k in pairs(b:GetChildren()) do
  943.                                     if k:IsA("SurfaceGui") then
  944.                                         if k.AlwaysOnTop == true then
  945.                                             k:Destroy()
  946.                                         end
  947.                                     elseif k:IsA("BillboardGui") then
  948.                                         k:Destroy()
  949.                                     end
  950.                                 end
  951.                             end
  952.                         end
  953.                     end
  954.                 end    
  955.             else
  956.                 local toggled = Instance.new("BoolValue",workspace)
  957.                 toggled.Name = "ypa"
  958.                 for i,v in pairs(workspace.Entities:GetChildren()) do
  959.                     if v.Name == "C4 Shipment" then
  960.                         for i,b in pairs(v:GetChildren()) do
  961.                             if b.Name == "MeshPart" then
  962.                                            
  963.                                 local bill = Instance.new("BillboardGui", b)
  964.                                 bill.AlwaysOnTop = true
  965.                                 bill.StudsOffset = Vector3.new(0,5,0)
  966.                                 bill.Adornee = b
  967.                                 bill.Size = UDim2.new(2,1,2)
  968.                                    
  969.                                 local text = Instance.new("TextLabel", bill)
  970.                                 text.BackgroundTransparency = 1
  971.                                 text.Size = UDim2.new(1,0,1,0)
  972.                                 text.TextSize = 15
  973.                                 text.Text = "C4 Shipment | "..b.SurfaceGui.Uses.Text
  974.                                 text.TextColor3 = Color3.fromRGB(255,0,0)
  975.                                 text.Font = "ArialBold"
  976.                        
  977.                                 local surface1 = Instance.new("SurfaceGui",b)
  978.                                 surface1.Face = "Top"
  979.                                 surface1.AlwaysOnTop = true
  980.                                 local frame1 = Instance.new("Frame",surface1)
  981.                                 frame1.Size = UDim2.new(1,0,1,0)
  982.                                 frame1.BackgroundTransparency = 0.2
  983.                                 frame1.BackgroundColor3 = Color3.fromRGB(255,0,0)
  984.                                            
  985.                                 local surface2 = Instance.new("SurfaceGui",b)
  986.                                 surface2.Face = "Bottom"
  987.                                 surface2.AlwaysOnTop = true
  988.                                 local frame2 = Instance.new("Frame",surface2)
  989.                                 frame2.Size = UDim2.new(1,0,1,0)
  990.                                 frame2.BackgroundTransparency = 0.2
  991.                                 frame2.BackgroundColor3 = Color3.fromRGB(255,0,0)
  992.                                            
  993.                                 local surface3 = Instance.new("SurfaceGui",b)
  994.                                 surface3.Face = "Left"
  995.                                 surface3.AlwaysOnTop = true
  996.                                 local frame3 = Instance.new("Frame",surface3)
  997.                                 frame3.Size = UDim2.new(1,0,1,0)
  998.                                 frame3.BackgroundTransparency = 0.2
  999.                                 frame3.BackgroundColor3 = Color3.fromRGB(255,0,0)
  1000.                                            
  1001.                                 local surface4 = Instance.new("SurfaceGui",b)
  1002.                                 surface4.Face = "Right"
  1003.                                 surface4.AlwaysOnTop = true
  1004.                                 local frame4 = Instance.new("Frame",surface4)
  1005.                                 frame4.Size = UDim2.new(1,0,1,0)
  1006.                                 frame4.BackgroundTransparency = 0.2
  1007.                                 frame4.BackgroundColor3 = Color3.fromRGB(255,0,0)
  1008.                                            
  1009.                                 local surface5 = Instance.new("SurfaceGui",b)
  1010.                                 surface5.Face = "Front"
  1011.                                 surface5.AlwaysOnTop = true
  1012.                                 local frame5 = Instance.new("Frame",surface5)
  1013.                                 frame5.Size = UDim2.new(1,0,1,0)
  1014.                                 frame5.BackgroundTransparency = 0.2
  1015.                                 frame5.BackgroundColor3 = Color3.fromRGB(255,0,0)
  1016.                                            
  1017.                                 local surface6 = Instance.new("SurfaceGui",b)
  1018.                                 surface6.Face = "Back"
  1019.                                 surface6.AlwaysOnTop = true
  1020.                                 local frame6 = Instance.new("Frame",surface6)
  1021.                                 frame6.Size = UDim2.new(1,0,1,0)
  1022.                                 frame6.BackgroundTransparency = 0.2
  1023.                                 frame6.BackgroundColor3 = Color3.fromRGB(255,0,0)
  1024.                             end
  1025.                         end
  1026.                     end
  1027.                 end
  1028.             end
  1029.         end
  1030.     },
  1031. }
  1032.  
  1033. --// Global Vairables
  1034. gui = game.Players.LocalPlayer.PlayerGui.ava.Frame
  1035.  
  1036. --// Creating the menu buttons
  1037. for i,v in pairs(menuButtons) do
  1038.     if v.Type == "button" then
  1039.         newbutton = gui.Parent.Prefabs.button:Clone()
  1040.         newbutton.Parent = gui
  1041.         newbutton.Visible = true
  1042.         newbutton.Text = v.Name
  1043.         newbutton.Name = v.Name
  1044.         if not v.Submenu then
  1045.             newbutton:ClearAllChildren()
  1046.         end
  1047.     elseif v.Type == "label" then
  1048.         newlabel = gui.Parent.Prefabs.label:Clone()
  1049.         newlabel.Parent = gui
  1050.         newlabel.Visible = true
  1051.         newlabel.Text = v.Text
  1052.         newlabel.Name = v.Name
  1053.     elseif v.Type == "text" then
  1054.         newtext = gui.Parent.Prefabs.text:Clone()
  1055.         newtext.Parent = gui
  1056.         newtext.Visible = true
  1057.         newtext.Text = v.Text
  1058.         newtext.Name = v.Name
  1059.     end
  1060. end
  1061.  
  1062. --// Creating the submenu buttons
  1063. for i,b in pairs(submenuButtons) do
  1064.     if b.Type == "button" then
  1065.         newsubbutton = gui.Parent.Prefabs.button:Clone()
  1066.         newsubbutton:ClearAllChildren()
  1067.         newsubbutton.Parent = gui[b.Parent].Frame
  1068.         newsubbutton.Visible = true
  1069.         newsubbutton.Text = b.Name
  1070.         newsubbutton.Name = b.Name
  1071.     elseif b.Type == "label" then
  1072.         newlabel = gui.Parent.Prefabs.label:Clone()
  1073.         newlabel.Parent = gui[b.Parent].Frame
  1074.         newlabel.Visible = true
  1075.         newlabel.Text = b.Text
  1076.         newlabel.Name = b.Name
  1077.     elseif b.Type == "text" then
  1078.         newtext = gui.Parent.Prefabs.text:Clone()
  1079.         newtext.Parent = gui[b.Parent].Frame
  1080.         newtext.Visible = true
  1081.         newtext.Text = b.Text
  1082.         newtext.Name = b.Name
  1083.     end
  1084. end
  1085.  
  1086. --// Creating the toggle color function
  1087. buttonToggle = function(button)
  1088.     if button.BackgroundColor3 == Color3.fromRGB(255,255,255) then
  1089.         button.BackgroundColor3 = Color3.fromRGB(96, 208, 255)
  1090.     else
  1091.         button.BackgroundColor3 = Color3.fromRGB(255,255,255)
  1092.     end
  1093. end
  1094.  
  1095. --// Connecting button presses menu
  1096. for i,t in pairs(gui:GetChildren()) do
  1097.     if t:IsA("TextButton") then
  1098.         t.MouseButton1Down:connect(function()
  1099.             if menuButtons[t.Name]["Submenu"] then
  1100.                 t.Frame.Visible = not t.Frame.Visible
  1101.             end
  1102.             if menuButtons[t.Name]["Toggle"] then
  1103.                 buttonToggle(t)
  1104.             end
  1105.             menuButtons[t.Name]["Script"]()
  1106.         end)
  1107.     end
  1108. end
  1109.  
  1110. --// Connecting textbox enters menu
  1111. for i,j in pairs(gui:GetChildren()) do
  1112.     if j:IsA("TextBox") then
  1113.         j.FocusLost:connect(function(enterPressed)
  1114.             if enterPressed then
  1115.                 menuButtons[j.Name]["Script"](j.Text)
  1116.             end
  1117.         end)
  1118.     end
  1119. end
  1120.  
  1121. --// Connecting textbox enters submenu
  1122. for i,u in pairs(gui:GetChildren()) do
  1123.     if u:IsA("TextButton") then
  1124.         for i,o in pairs(u.Frame:GetChildren()) do
  1125.             if o:IsA("TextBox") then
  1126.                 o.FocusLost:connect(function(enterPressed)
  1127.                     if enterPressed then
  1128.                         submenuButtons[o.Name]["Script"](o.Text)
  1129.                     end
  1130.                 end)
  1131.             end
  1132.         end
  1133.     end
  1134. end
  1135.  
  1136. --// Connecting button presses for sub
  1137. for i,x in pairs(gui:GetChildren()) do
  1138.     if x:IsA("TextButton") then
  1139.         for i,y in pairs(x.Frame:GetChildren()) do
  1140.             if y:IsA("TextButton") then
  1141.                 y.MouseButton1Down:connect(function()
  1142.                     if submenuButtons[y.Name]["Toggle"] then
  1143.                         buttonToggle(y)
  1144.                     end
  1145.                     submenuButtons[y.Name]["Script"]()
  1146.                 end)
  1147.             end
  1148.         end
  1149.     end
  1150. end
  1151.  
  1152. --// Custom notify function
  1153. notify = function(t,m)
  1154.     game:GetService("StarterGui"):SetCore("SendNotification", {Title = t, Text = m})
  1155. end
Add Comment
Please, Sign In to add comment