UnknownExploiter

Electric State ESP

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