Advertisement
Guest User

Electric State DarkRp Esp

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