CPP 4834
Multicrew Tank Combat 4 ESP By venuslock on 8th June 2024 11:59:45 AM
  1. game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Box ESP", Text = "By Mick Gordon"})
  2. game:GetService("StarterGui"):SetCore("SendNotification", {Title = "https://discord.gg/FsApQ7YNTq", Text = "The Discord"})
  3. local HEBOXESP = Instance.new("ScreenGui") HEBOXESP.Name = "HEBOXESP" HEBOXESP.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") HEBOXESP.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  4. local HEBoxes = Instance.new("Frame")HEBoxes.Name = "HEBoxes" HEBoxes.Parent = HEBOXESP HEBoxes.BackgroundColor3 = Color3.fromRGB(52, 52, 52) HEBoxes.BorderColor3 = Color3.fromRGB(255, 255, 255) HEBoxes.Position = UDim2.new(0.117352635, 0, 0.340447158, 0) HEBoxes.Size = UDim2.new(0, 241, 0, 231) HEBoxes.Active = true HEBoxes.Draggable = true
  5. local TextBox = Instance.new("TextBox")TextBox.Parent = HEBoxes TextBox.Active = false TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextBox.BackgroundTransparency = 1.000 TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0) TextBox.BorderSizePixel = 0 TextBox.Position = UDim2.new(0.0829875544, 0, 0.823943675, 0) TextBox.Size = UDim2.new(0, 200, 0, 50) TextBox.ClearTextOnFocus = false TextBox.Font = Enum.Font.Roboto TextBox.PlaceholderText = "https://discord.gg/FsApQ7YNTq" TextBox.Text = "https://discord.gg/FsApQ7YNTq -ClickMe" TextBox.TextColor3 = Color3.fromRGB(255, 255, 255) TextBox.TextSize = 14.000
  6. local Frame = Instance.new("Frame")Frame.Parent = HEBoxes Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame.BackgroundTransparency = 1.000 Frame.BorderColor3 = Color3.fromRGB(0, 0, 0) Frame.BorderSizePixel = 0 Frame.Position = UDim2.new(0.495850623, 0, 0.26418829, 0) Frame.Size = UDim2.new(0, 121, 0, 100)
  7. local UIListLayout = Instance.new("UIListLayout")UIListLayout.Parent = Frame UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout.Padding = UDim.new(0, 5)
  8. local TextLabel = Instance.new("TextLabel")TextLabel.Parent = Frame TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel.BackgroundTransparency = 1.000 TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0) TextLabel.BorderSizePixel = 0 TextLabel.Position = UDim2.new(0.0829875544, 0, 0.37352246, 0) TextLabel.Size = UDim2.new(0, 100, 0, 17) TextLabel.Font = Enum.Font.Roboto TextLabel.Text = "Info" TextLabel.TextColor3 = Color3.fromRGB(17, 223, 255) TextLabel.TextSize = 17.000
  9. local Showname = Instance.new("TextButton")Showname.Name = "Showname" Showname.Parent = Frame Showname.BackgroundColor3 = Color3.fromRGB(52, 52, 52) Showname.BorderColor3 = Color3.fromRGB(255, 255, 255) Showname.Position = UDim2.new(0.234439835, 0, 0.0661938563, 0) Showname.Size = UDim2.new(0, 100, 0, 24) Showname.Font = Enum.Font.Roboto Showname.Text = "Show name" Showname.TextColor3 = Color3.fromRGB(255, 255, 255) Showname.TextSize = 17.000
  10. local Showdistance = Instance.new("TextButton")Showdistance.Name = "Showdistance" Showdistance.Parent = Frame Showdistance.BackgroundColor3 = Color3.fromRGB(52, 52, 52) Showdistance.BorderColor3 = Color3.fromRGB(255, 255, 255) Showdistance.Position = UDim2.new(0.234439835, 0, 0.139479905, 0) Showdistance.Size = UDim2.new(0, 100, 0, 24) Showdistance.Font = Enum.Font.Roboto Showdistance.Text = "Show distance" Showdistance.TextColor3 = Color3.fromRGB(255, 255, 255) Showdistance.TextSize = 14.000
  11. local HealthType = Instance.new("TextButton")HealthType.Name = "HealthType" HealthType.Parent = Frame HealthType.BackgroundColor3 = Color3.fromRGB(52, 52, 52) HealthType.BorderColor3 = Color3.fromRGB(255, 255, 255) HealthType.Position = UDim2.new(0.234439835, 0, 0.139479905, 0) HealthType.Size = UDim2.new(0, 100, 0, 24) HealthType.Font = Enum.Font.Roboto HealthType.Text = "TEXT, bar, both" HealthType.TextColor3 = Color3.fromRGB(255, 255, 255) HealthType.TextSize = 17.000
  12. local Frame_2 = Instance.new("Frame")Frame_2.Parent = HEBoxes Frame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_2.BackgroundTransparency = 1.000 Frame_2.BorderColor3 = Color3.fromRGB(0, 0, 0) Frame_2.BorderSizePixel = 0 Frame_2.Position = UDim2.new(-0.00207468891, 0, 0.26418829, 0) Frame_2.Size = UDim2.new(0, 121, 0, 150)
  13. local UIListLayout_2 = Instance.new("UIListLayout")UIListLayout_2.Parent = Frame_2 UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout_2.Padding = UDim.new(0, 5)
  14. local TextLabel_2 = Instance.new("TextLabel")TextLabel_2.Parent = Frame_2 TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel_2.BackgroundTransparency = 1.000 TextLabel_2.BorderColor3 = Color3.fromRGB(0, 0, 0) TextLabel_2.BorderSizePixel = 0 TextLabel_2.Position = UDim2.new(0.0829875544, 0, 0.37352246, 0) TextLabel_2.Size = UDim2.new(0, 100, 0, 17) TextLabel_2.Font = Enum.Font.Roboto TextLabel_2.Text = "Show Box" TextLabel_2.TextColor3 = Color3.fromRGB(17, 223, 255) TextLabel_2.TextSize = 17.000
  15. local Boundingbox = Instance.new("TextButton")Boundingbox.Name = "Boundingbox" Boundingbox.Parent = Frame_2 Boundingbox.BackgroundColor3 = Color3.fromRGB(52, 52, 52) Boundingbox.BorderColor3 = Color3.fromRGB(255, 255, 255) Boundingbox.Position = UDim2.new(0.234439835, 0, 0.139479905, 0) Boundingbox.Size = UDim2.new(0, 100, 0, 24) Boundingbox.Font = Enum.Font.Roboto Boundingbox.Text = "Bounding box" Boundingbox.TextColor3 = Color3.fromRGB(255, 255, 255) Boundingbox.TextSize = 17.000
  16. local UseTeamColor = Instance.new("TextButton")UseTeamColor.Name = "UseTeamColor" UseTeamColor.Parent = Frame_2 UseTeamColor.BackgroundColor3 = Color3.fromRGB(52, 52, 52) UseTeamColor.BorderColor3 = Color3.fromRGB(255, 255, 255) UseTeamColor.Position = UDim2.new(0.234439835, 0, 0.139479905, 0) UseTeamColor.Size = UDim2.new(0, 100, 0, 24) UseTeamColor.Font = Enum.Font.Roboto UseTeamColor.Text = "Use TeamColor" UseTeamColor.TextColor3 = Color3.fromRGB(255, 255, 255) UseTeamColor.TextSize = 14.000
  17. local Showhealth = Instance.new("TextButton")Showhealth.Name = "Showhealth" Showhealth.Parent = Frame_2 Showhealth.BackgroundColor3 = Color3.fromRGB(52, 52, 52) Showhealth.BorderColor3 = Color3.fromRGB(255, 255, 255) Showhealth.Position = UDim2.new(0.234439835, 0, 0.139479905, 0) Showhealth.Size = UDim2.new(0, 100, 0, 24) Showhealth.Font = Enum.Font.Roboto Showhealth.Text = "Show health" Showhealth.TextColor3 = Color3.fromRGB(255, 255, 255) Showhealth.TextSize = 17.000
  18. local A = Instance.new("TextLabel")A.Name = "A" A.Parent = HEBoxes A.BackgroundColor3 = Color3.fromRGB(255, 255, 255) A.BackgroundTransparency = 1.000 A.BorderColor3 = Color3.fromRGB(0, 0, 0) A.BorderSizePixel = 0 A.Position = UDim2.new(0.0829875544, 0, -0.0318399332, 0) A.Size = UDim2.new(0, 200, 0, 50) A.Font = Enum.Font.Roboto A.Text = "Hyper Escape | Box ESP" A.TextColor3 = Color3.fromRGB(17, 223, 255) A.TextSize = 19.000
  19. local Frame_3 = Instance.new("Frame")Frame_3.Parent = HEBoxes Frame_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame_3.BackgroundTransparency = 1.000 Frame_3.BorderColor3 = Color3.fromRGB(0, 0, 0) Frame_3.BorderSizePixel = 0 Frame_3.Position = UDim2.new(0.287999988, 0, 0.150000006, 0) Frame_3.Size = UDim2.new(0, 100, 0, 82)
  20. local UIListLayout_3 = Instance.new("UIListLayout")UIListLayout_3.Parent = Frame_3 UIListLayout_3.HorizontalAlignment = Enum.HorizontalAlignment.Center UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout_3.Padding = UDim.new(0, 7)
  21. local EnablTeamCheck = Instance.new("TextButton")EnablTeamCheck.Name = "EnablTeamCheck" EnablTeamCheck.Parent = Frame_3 EnablTeamCheck.BackgroundColor3 = Color3.fromRGB(52, 52, 52) EnablTeamCheck.BorderColor3 = Color3.fromRGB(255, 255, 255) EnablTeamCheck.Position = UDim2.new(0.234439835, 0, 0.139479905, 0) EnablTeamCheck.Size = UDim2.new(0, 122, 0, 24) EnablTeamCheck.Font = Enum.Font.Roboto EnablTeamCheck.Text = "Show Team" EnablTeamCheck.TextColor3 = Color3.fromRGB(255, 255, 255) EnablTeamCheck.TextSize = 17.000
  22. local A_2 = Instance.new("TextLabel")A_2.Name = "A" A_2.Parent = HEBoxes A_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) A_2.BackgroundTransparency = 1.000 A_2.BorderColor3 = Color3.fromRGB(0, 0, 0) A_2.BorderSizePixel = 0 A_2.Position = UDim2.new(0.46887967, 0, 0.630497932, 0) A_2.Size = UDim2.new(0, 12, 0, 14) A_2.Font = Enum.Font.Roboto A_2.Text = "=" A_2.TextColor3 = Color3.fromRGB(255, 255, 255) A_2.TextSize = 19.000
  23. local localplayer = game:GetService"Players".LocalPlayer
  24.  
  25. local cheats = {
  26.         Boundingbox = false;
  27.         Showdistance = false;
  28.         Showname = false;
  29.         Showhealth = false;
  30.         b_ht = "Box";
  31.         EnablTeamCheck = false;
  32.         UseTeamColor = false;
  33.         HealthType = false;
  34. }
  35.  
  36. local cheatsf = Instance.new("Folder", game.Workspace) cheatsf.Name = "cheats"
  37. local espf = Instance.new("Folder", cheatsf) espf.Name = "esp"
  38.  
  39. function addEsp(player)
  40.         local bbg = Instance.new("BillboardGui", espf)
  41.         bbg.Name = player.Name
  42.         bbg.AlwaysOnTop = true
  43.         bbg.Size = UDim2.new(4,0,5.4,0)
  44.         bbg.ClipsDescendants = false
  45.  
  46.         local outlines = Instance.new("Frame", bbg)
  47.         outlines.Size = UDim2.new(1,0,1,0)
  48.         outlines.BorderSizePixel = 0
  49.         outlines.BackgroundTransparency = 1
  50.         local left = Instance.new("Frame", outlines)
  51.         left.BorderSizePixel = 0
  52.         left.Size = UDim2.new(0,1,1,0)
  53.         local right = left:Clone()
  54.         right.Parent = outlines
  55.         right.Size = UDim2.new(0,-1,1,0)
  56.         right.Position = UDim2.new(1,0,0,0)
  57.         local up = left:Clone()
  58.         up.Parent = outlines
  59.         up.Size = UDim2.new(1,0,0,1)
  60.         local down = left:Clone()
  61.         down.Parent = outlines
  62.         down.Size = UDim2.new(1,0,0,-1)
  63.         down.Position = UDim2.new(0,0,1,0)
  64.  
  65.         local info = Instance.new("BillboardGui", bbg)
  66.         info.Name = "info"
  67.         info.Size = UDim2.new(3,0,0,54)
  68.         info.StudsOffset = Vector3.new(3.6,-3,0)
  69.         info.AlwaysOnTop = true
  70.         info.ClipsDescendants = false
  71.         local namelabel = Instance.new("TextLabel", info)
  72.         namelabel.Name = "namelabel"
  73.         namelabel.BackgroundTransparency = 1
  74.         namelabel.TextStrokeTransparency = 0
  75.         namelabel.TextXAlignment = Enum.TextXAlignment.Left
  76.         namelabel.Size = UDim2.new(0,100,0,18)
  77.         namelabel.Position = UDim2.new(0,0,0,0)
  78.         namelabel.Text = player.Name
  79.         local distancel = Instance.new("TextLabel", info)
  80.         distancel.Name = "distancelabel"
  81.         distancel.BackgroundTransparency = 1
  82.         distancel.TextStrokeTransparency = 0
  83.         distancel.TextXAlignment = Enum.TextXAlignment.Left
  84.         distancel.Size = UDim2.new(0,100,0,18)
  85.         distancel.Position = UDim2.new(0,0,0,18)
  86.         local healthl = Instance.new("TextLabel", info)
  87.         healthl.Name = "healthlabel"
  88.         healthl.BackgroundTransparency = 1
  89.         healthl.TextStrokeTransparency = 0
  90.         healthl.TextXAlignment = Enum.TextXAlignment.Left
  91.         healthl.Size = UDim2.new(0,100,0,18)
  92.         healthl.Position = UDim2.new(0,0,0,36)
  93.  
  94.         local uill = Instance.new("UIListLayout", info)
  95.  
  96.         local forhealth = Instance.new("BillboardGui", bbg)
  97.         forhealth.Name = "forhealth"
  98.         forhealth.Size = UDim2.new(5,0,6,0)
  99.         forhealth.AlwaysOnTop = true
  100.         forhealth.ClipsDescendants = false
  101.  
  102.         local healthbar = Instance.new("Frame", forhealth)
  103.         healthbar.Name = "healthbar"
  104.         healthbar.BackgroundColor3 = Color3.fromRGB(40,40,40)
  105.         healthbar.BorderColor3 = Color3.fromRGB(0,0,0)
  106.         healthbar.Size = UDim2.new(0.04,0,0.9,0)
  107.         healthbar.Position = UDim2.new(0,0,0.05,0)
  108.         local bar = Instance.new("Frame", healthbar)
  109.         bar.Name = "bar"
  110.         bar.BorderSizePixel = 0
  111.         bar.BackgroundColor3 = Color3.fromRGB(94,255,69)
  112.         bar.AnchorPoint = Vector2.new(0,1)
  113.         bar.Position = UDim2.new(0,0,1,0)
  114.         bar.Size = UDim2.new(1,0,1,0)
  115.  
  116.         local co = coroutine.create(function()
  117.                 while wait(0.1) do
  118.                         if (player.Character and player.Character:FindFirstChild"HumanoidRootPart" and player.Character.Humanoid.Health > 0) then
  119.                                 bbg.Adornee = player.Character.HumanoidRootPart
  120.                                 info.Adornee = player.Character.HumanoidRootPart
  121.                                 forhealth.Adornee = player.Character.HumanoidRootPart
  122.                                 if (player.Team ~= localplayer.Team) then
  123.                                         bbg.Enabled = true
  124.                                         info.Enabled = true
  125.                                         forhealth.Enabled = true
  126.                                 end
  127.                                 if cheats.Boundingbox == true then
  128.                                         outlines.Visible = true
  129.                                 else
  130.                                         outlines.Visible = false
  131.                                 end
  132.                                 if cheats.Showhealth == true then
  133.                                         if (player.Character:FindFirstChild"Humanoid") then
  134.                                                 healthl.Text = "Health: "..math.floor(player.Character:FindFirstChild"Humanoid".Health)
  135.                                                 healthbar.bar.Size = UDim2.new(1,0,player.Character:FindFirstChild"Humanoid".Health/player.Character:FindFirstChild"Humanoid".MaxHealth,0)
  136.                                         end
  137.                                         if cheats.b_ht == "Text" then
  138.                                                 healthbar.Visible = false
  139.                                                 healthl.Visible = true
  140.                                         end
  141.                                         if cheats.b_ht == "Bar" then
  142.                                                 healthl.Visible = false
  143.                                                 healthbar.Visible = true
  144.                                         end
  145.                                         if cheats.b_ht == "Both" then
  146.                                                 healthl.Visible = true
  147.                                                 healthbar.Visible = true
  148.                                         end
  149.                                 else
  150.                                         healthl.Visible = false
  151.                                         healthbar.Visible = false
  152.                                 end
  153.                                 if cheats.Showname then
  154.                                         namelabel.Visible = true
  155.                                 else
  156.                                         namelabel.Visible = false
  157.                                 end
  158.                                 if cheats.Showdistance == true then
  159.                                         distancel.Visible = true
  160.                                         if (localplayer.Character and localplayer.Character:FindFirstChild"HumanoidRootPart") then
  161.                                                 distancel.Text = "Distance: "..math.floor(0.5+(localplayer.Character:FindFirstChild"HumanoidRootPart".Position - player.Character:FindFirstChild"HumanoidRootPart".Position).magnitude)
  162.                                         end
  163.                                 else
  164.                                         distancel.Visible = false
  165.                                 end
  166.                                 if cheats.EnablTeamCheck == true then
  167.                                         if (player.Team == localplayer.Team) then
  168.                                                 bbg.Enabled = true
  169.                                                 info.Enabled = true
  170.                                                 forhealth.Enabled = true
  171.                                         end
  172.                                 else
  173.                                         if (player.Team == localplayer.Team) then
  174.                                                 bbg.Enabled = false
  175.                                                 info.Enabled = false
  176.                                                 forhealth.Enabled = false
  177.                                         end
  178.                                 end
  179.                                 if cheats.UseTeamColor == true then
  180.                                         left.BackgroundColor3 = player.TeamColor.Color
  181.                                         right.BackgroundColor3 = player.TeamColor.Color
  182.                                         up.BackgroundColor3 = player.TeamColor.Color
  183.                                         down.BackgroundColor3 = player.TeamColor.Color
  184.                                         healthl.TextColor3 = player.TeamColor.Color
  185.                                         distancel.TextColor3 = player.TeamColor.Color
  186.                                         namelabel.TextColor3 = player.TeamColor.Color
  187.                                 else
  188.                                         left.BackgroundColor3 = Color3.fromRGB(255,255,255)
  189.                                         right.BackgroundColor3 = Color3.fromRGB(255,255,255)
  190.                                         up.BackgroundColor3 = Color3.fromRGB(255,255,255)
  191.                                         down.BackgroundColor3 = Color3.fromRGB(255,255,255)
  192.                                         healthl.TextColor3 = Color3.fromRGB(255,255,255)
  193.                                         distancel.TextColor3 = Color3.fromRGB(255,255,255)
  194.                                         namelabel.TextColor3 = Color3.fromRGB(255,255,255)
  195.                                 end
  196.                         else
  197.                                 bbg.Enabled = false
  198.                         end
  199.                         if not (game:GetService"Players":FindFirstChild(player.Name)) then
  200.                                 espf:FindFirstChild(player.Name):Destroy()
  201.                                 coroutine.yield()
  202.                         end
  203.                 end
  204.         end)
  205.         coroutine.resume(co)
  206. end
  207.  
  208. do
  209.         wait(2)
  210.        
  211.         for _,button in pairs(HEBOXESP:GetDescendants()) do
  212.                 if button:IsA"TextButton" then
  213.                         button.MouseButton1Click:connect(function()
  214.                                 if button.Name == "HealthType" then
  215.                                         if cheats.b_ht == "Text" then
  216.                                                 cheats.b_ht = "Bar"
  217.                                                 HealthType.Text = "text, BAR, both"
  218.                                         elseif cheats.b_ht == "Bar" then
  219.                                                 cheats.b_ht = "Both"
  220.                                                 HealthType.Text = "text, bar, BOTH"
  221.                                         else
  222.                                                 cheats.b_ht = "Text"
  223.                                                 HealthType.Text = "TEXT, bar, both"
  224.                                         end
  225.                                 else
  226.                                         if cheats[button.Name] == true then
  227.                                                 cheats[button.Name] = false
  228.                                                 button.BackgroundColor3 = Color3.fromRGB(52, 52, 52)
  229.                                         else
  230.                                                 cheats[button.Name] = true
  231.                                                 button.BackgroundColor3 = Color3.fromRGB(2, 54, 8)
  232.                                         end
  233.                                 end    
  234.                         end)
  235.                 end
  236.         end
  237.  
  238.         for _,v in pairs(game:GetService("Players"):GetChildren()) do
  239.                 if not (v.Name == localplayer.Name) then
  240.                         if not (espf:FindFirstChild(v.Name)) then
  241.                                 addEsp(v)
  242.                         end
  243.                 end
  244.         end
  245.  
  246.         while wait(10) do
  247.                 for _,v in pairs(game:GetService("Players"):GetChildren()) do
  248.                         if not (v.Name == localplayer.Name) then
  249.                                 if not (espf:FindFirstChild(v.Name)) then
  250.                                         addEsp(v)
  251.                                        
  252.                                 end
  253.                         end
  254.                 end
  255.         end
  256. end

Texbin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.