-- Debug Menu Script with Toggle (Persistent Key Hold)
local Modules = {
Colors = {
["Green"] = "0,255,0",
}
}
Modules.ChangeColor = function()
game:GetService("RunService").Heartbeat:Connect(function()
local devConsole = game:GetService("CoreGui"):FindFirstChild("DevConsoleMaster")
if devConsole then
for _, v in pairs(devConsole:GetDescendants()) do
if v:IsA("TextLabel") then
v.RichText = true
end
end
end
end)
end
Modules.print = function(color, text, size)
if not Modules.Colors[color] then
warn("Color was not found!")
return
end
local Text = '' .. tostring(text) .. ''
print(Text)
end
-- Display Debug Menu
local function showDebugMenu()
print("[🛠️] DEBUG MENU")
print("F1: Game Stats")
print("F2: Graphics Stats")
print("F3: Network Stats")
print("F4: Network Diagnostics")
print("F5: Show GPU Info")
print("F6: Network Debugging")
print("F7: Physics Stats")
print("F8: Summary Stats")
print("F9: Developer Console")
print("F10: Graphics")
print("\nType 'F' to toggle each feature on/off.")
end
-- Table to track active debug toggles
local activeMenus = {}
-- Toggle function that holds key down until toggled off
local function toggleKeyPress(shiftKey, fKey, menuKey)
if activeMenus[menuKey] then
-- If already active, release keys to turn it off
keyrelease(fKey)
keyrelease(shiftKey)
activeMenus[menuKey] = false
else
-- If not active, press and hold keys to turn it on
keypress(shiftKey)
keypress(fKey)
activeMenus[menuKey] = true
end
end
-- Show the debug menu in the console
Modules.ChangeColor()
Modules.print("Green", "DEBUG ACTIVATED", 20)
showDebugMenu()
-- Table mapping chat commands to their toggles
local debugCommandMap = {
["F1"] = function() toggleKeyPress(0x10, 0x70, "F1") end, -- Shift + F1 (Game Stats)
["F2"] = function() toggleKeyPress(0x10, 0x71, "F2") end, -- Shift + F2 (Graphics Stats)
["F3"] = function() toggleKeyPress(0x10, 0x72, "F3") end, -- Shift + F3 (Network Stats)
["F4"] = function() toggleKeyPress(0x11, 0x72, "F4") end, -- Ctrl + Shift + F3 (Network Diagnostics)
["F5"] = function() toggleKeyPress(0x10, 0x75, "F5") end, -- Shift + F6 (GPU Info)
["F6"] = function() toggleKeyPress(0x10, 0x31, "F6") end, -- Shift + 1 (Network Debugging)
["F7"] = function() toggleKeyPress(0x10, 0x73, "F7") end, -- Shift + F4 (Physics Stats)
["F8"] = function() toggleKeyPress(0x10, 0x74, "F8") end, -- Shift + F5 (Summary Stats)
["F9"] = function() toggleKeyPress(0x10, 0x78, "F9") end, -- Shift + F9 (Developer Console)
["F10"] = function() toggleKeyPress(0x10, 0x79, "F10") end -- Shift + F10 (Graphics)
}
-- Listen for player chat commands
local player = game:GetService("Players").LocalPlayer
if player then
player.Chatted:Connect(function(message)
local command = message:upper()
if debugCommandMap[command] then
debugCommandMap[command]() -- Toggle the feature
end
end)
end