local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local lPlayer = Players.LocalPlayer local espEnabled = true local function GetPlayerTank(Player) local Char = Player:WaitForChild("Char") if not Char then return false end if not Char.Value then return false end return Char.Value.Parent.Parent.Parent end local function highlight(object, color, fill) local highlight = Instance.new('Highlight', object) highlight.FillColor = color highlight.FillTransparency = fill highlight.OutlineColor = color highlight.OutlineTransparency = 0.98 return highlight end local Ammo = Instance.new("Model", Workspace) Ammo.Name = "AmmoContainer" local ammoHighlight = highlight(Ammo, Color3.fromRGB(255, 0, 0), 0.7) local Fuel = Instance.new("Model", Workspace) Fuel.Name = "FuelContainer" local fuelHighlight = highlight(Fuel, Color3.fromRGB(255, 255, 255), 0.9) local Barrel = Instance.new("Model", Workspace) Barrel.Name = "BarrelContainer" local barrelHighlight = highlight(Barrel, Color3.fromRGB(0, 0, 255), 0.7) local parts = { ["Ammo rack"] = Ammo, ["Fuel tank"] = Fuel, ["Barrel"] = Barrel } local function updateESPVisibility() local transparency = espEnabled and 0 or 1 ammoHighlight.FillTransparency = transparency ammoHighlight.OutlineTransparency = transparency fuelHighlight.FillTransparency = transparency fuelHighlight.OutlineTransparency = transparency barrelHighlight.FillTransparency = transparency barrelHighlight.OutlineTransparency = transparency end local function processPart(v) if parts[v.Name] then local myTank = GetPlayerTank(lPlayer) if (myTank and not v:IsDescendantOf(myTank)) or (not myTank and not v:IsDescendantOf(Workspace:FindFirstChild("Ignore"))) then v.Transparency = 0 v.Parent = parts[v.Name] end end end Workspace.DescendantAdded:Connect(function(v) task.wait(5) processPart(v) end) for _, v in pairs(Workspace:GetDescendants()) do processPart(v) end local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.CoreGui screenGui.ResetOnSpawn = false screenGui.Name = "SteelTitansMenu" local mainFrame = Instance.new("Frame", screenGui) mainFrame.Size = UDim2.new(0, 200, 0, 170) mainFrame.Position = UDim2.new(0.5, -100, 0.5, -85) mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 35) mainFrame.BackgroundTransparency = 0.1 mainFrame.Active = true mainFrame.Draggable = true Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 8) local title = Instance.new("TextLabel", mainFrame) title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundColor3 = Color3.fromRGB(35, 35, 45) title.Text = "Steel Titans" title.Font = Enum.Font.GothamBold title.TextSize = 16 title.TextColor3 = Color3.new(1, 1, 1) Instance.new("UICorner", title).CornerRadius = UDim.new(0, 8) local credit = Instance.new("TextLabel", mainFrame) credit.Size = UDim2.new(1, 0, 0, 20) credit.Position = UDim2.new(0, 0, 1, -20) credit.BackgroundTransparency = 1 credit.Text = "by NIKI" credit.Font = Enum.Font.Gotham credit.TextSize = 12 credit.TextColor3 = Color3.fromRGB(170, 170, 170) local espButton = Instance.new("TextButton", mainFrame) espButton.Size = UDim2.new(0, 160, 0, 30) espButton.Position = UDim2.new(0.5, -80, 0, 40) espButton.Text = "ESP: ON" espButton.Font = Enum.Font.Gotham espButton.TextSize = 14 espButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) espButton.TextColor3 = Color3.new(1, 1, 1) Instance.new("UICorner", espButton).CornerRadius = UDim.new(0, 5) espButton.MouseButton1Click:Connect(function() espEnabled = not espEnabled espButton.Text = "ESP: " .. (espEnabled and "ON" or "OFF") espButton.BackgroundColor3 = espEnabled and Color3.fromRGB(0, 170, 0) or Color3.fromRGB(170, 0, 0) updateESPVisibility() end) local menuKey = Enum.KeyCode.Insert local isSettingKey = false local keyButton = Instance.new("TextButton", mainFrame) keyButton.Size = UDim2.new(0, 160, 0, 30) keyButton.Position = UDim2.new(0.5, -80, 0, 80) keyButton.Text = "Menu Key: Insert" keyButton.Font = Enum.Font.Gotham keyButton.TextSize = 14 keyButton.BackgroundColor3 = Color3.fromRGB(50, 50, 60) keyButton.TextColor3 = Color3.new(1, 1, 1) Instance.new("UICorner", keyButton).CornerRadius = UDim.new(0, 5) keyButton.MouseButton1Click:Connect(function() isSettingKey = true keyButton.Text = "Press any key..." end) local closeButton = Instance.new("TextButton", mainFrame) closeButton.Size = UDim2.new(0, 80, 0, 25) closeButton.Position = UDim2.new(0.5, -40, 0, 125) closeButton.Text = "Close" closeButton.Font = Enum.Font.Gotham closeButton.TextSize = 12 closeButton.BackgroundColor3 = Color3.fromRGB(150, 0, 0) closeButton.TextColor3 = Color3.new(1, 1, 1) Instance.new("UICorner", closeButton).CornerRadius = UDim.new(0, 5) closeButton.MouseButton1Click:Connect(function() mainFrame.Visible = false end) UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if isSettingKey then if input.KeyCode ~= Enum.KeyCode.Unknown then menuKey = input.KeyCode keyButton.Text = "Menu Key: " .. input.KeyCode.Name isSettingKey = false elseif input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then menuKey = input.UserInputType keyButton.Text = "Menu Key: " .. tostring(input.UserInputType):gsub("Enum.UserInputType.", "") isSettingKey = false end return end if input.KeyCode == menuKey or input.UserInputType == menuKey then mainFrame.Visible = not mainFrame.Visible end end) updateESPVisibility() print("=== Steel Titans ESP (with menu and ESP toggle) loaded ===") print("Press Insert to open menu.")