MaxproGlitcher

Debug Stat

Feb 21st, 2026
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.17 KB | None | 0 0
  1.  
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local UserInputService = game:GetService("UserInputService")
  5. local Stats = game:GetService("Stats")
  6. local CoreGui = game:GetService("CoreGui")
  7.  
  8. local Player = Players.LocalPlayer
  9. local Mouse = Player:GetMouse()
  10. local Camera = workspace.CurrentCamera
  11.  
  12. for _, old in ipairs(CoreGui:GetChildren()) do
  13. if old.Name == "F3_Final_Fixed" then old:Destroy() end
  14. end
  15.  
  16. local sg = Instance.new("ScreenGui", CoreGui)
  17. sg.Name = "F3_Final_Fixed"
  18. sg.IgnoreGuiInset = true
  19.  
  20. local function makeDraggable(obj)
  21. local dragging, dragInput, dragStart, startPos
  22.  
  23. obj.InputBegan:Connect(function(input)
  24. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  25. dragging = true
  26. dragStart = input.Position
  27. startPos = obj.Position
  28.  
  29. input.Changed:Connect(function()
  30. if input.UserInputState == Enum.UserInputState.End then
  31. dragging = false
  32. end
  33. end)
  34. end
  35. end)
  36.  
  37. obj.InputChanged:Connect(function(input)
  38. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  39. dragInput = input
  40. end
  41. end)
  42.  
  43. UserInputService.InputChanged:Connect(function(input)
  44. if input == dragInput and dragging then
  45. local delta = input.Position - dragStart
  46. obj.Position = UDim2.new(
  47. startPos.X.Scale,
  48. startPos.X.Offset + delta.X,
  49. startPos.Y.Scale,
  50. startPos.Y.Offset + delta.Y
  51. )
  52. end
  53. end)
  54. end
  55.  
  56. local btn = Instance.new("TextButton", sg)
  57. btn.Size = UDim2.new(0, 80, 0, 30)
  58. btn.Position = UDim2.new(0, 10, 0, 10)
  59. btn.Text = "F3 MENU"
  60. btn.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  61. btn.TextColor3 = Color3.new(1, 1, 1)
  62. btn.Font = Enum.Font.SourceSansBold
  63. btn.BorderSizePixel = 0
  64. makeDraggable(btn)
  65.  
  66. local frame = Instance.new("Frame", sg)
  67. frame.Size = UDim2.new(0, 300, 0, 480)
  68. frame.Position = UDim2.new(0, 10, 0, 50)
  69. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  70. frame.BackgroundTransparency = 0.4
  71. frame.BorderSizePixel = 0
  72. frame.Active = true
  73. makeDraggable(frame)
  74.  
  75. local info = Instance.new("TextLabel", frame)
  76. info.Size = UDim2.new(1, -20, 0, 200)
  77. info.Position = UDim2.new(0, 10, 0, 10)
  78. info.BackgroundTransparency = 1
  79. info.TextColor3 = Color3.new(1, 1, 1)
  80. info.TextXAlignment = Enum.TextXAlignment.Left
  81. info.TextYAlignment = Enum.TextYAlignment.Top
  82. info.Font = Enum.Font.Code
  83. info.TextSize = 13
  84. info.RichText = true
  85.  
  86. local function makeGraph(name, yPos, color)
  87. local label = Instance.new("TextLabel", frame)
  88. label.Text = name
  89. label.Size = UDim2.new(1, 0, 0, 15)
  90. label.Position = UDim2.new(0, 10, 0, yPos - 18)
  91. label.TextColor3 = color
  92. label.BackgroundTransparency = 1
  93. label.TextSize = 10
  94. label.Font = Enum.Font.Code
  95. label.TextXAlignment = Enum.TextXAlignment.Left
  96.  
  97. local gFrame = Instance.new("Frame", frame)
  98. gFrame.Size = UDim2.new(1, -20, 0, 40)
  99. gFrame.Position = UDim2.new(0, 10, 0, yPos)
  100. gFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  101. gFrame.BackgroundTransparency = 0.7
  102.  
  103. local bars = {}
  104. for i = 1, 30 do
  105. local b = Instance.new("Frame", gFrame)
  106. b.Size = UDim2.new(1/30, -1, 0.1, 0)
  107. b.Position = UDim2.new((i-1)/30, 0, 1, 0)
  108. b.AnchorPoint = Vector2.new(0, 1)
  109. b.BackgroundColor3 = color
  110. b.BorderSizePixel = 0
  111. bars[i] = b
  112. end
  113. return bars
  114. end
  115.  
  116. local fBars = makeGraph("FPS PERFORMANCE", 250, Color3.new(0, 1, 0))
  117. local tBars = makeGraph("TPS (PHYSICS)", 310, Color3.new(1, 1, 0))
  118. local pBars = makeGraph("NETWORK PING", 370, Color3.new(0, 0.8, 1))
  119.  
  120. local gizmo = Instance.new("Frame", sg)
  121. gizmo.Size = UDim2.new(0, 80, 0, 80)
  122. gizmo.Position = UDim2.new(1, -100, 0, 20)
  123. gizmo.BackgroundTransparency = 1
  124.  
  125. local function addAxis(color, name)
  126. local a = Instance.new("Frame", gizmo)
  127. a.Size = UDim2.new(0, 2, 0, 30)
  128. a.BackgroundColor3 = color
  129. a.AnchorPoint = Vector2.new(0.5, 0.5)
  130. local t = Instance.new("TextLabel", a)
  131. t.Text = name; t.TextColor3 = color; t.Size = UDim2.new(0,10,0,10); t.Position = UDim2.new(0,0,0,-12); t.BackgroundTransparency = 1
  132. return a
  133. end
  134. local axX, axY, axZ = addAxis(Color3.new(1,0,0),"X"), addAxis(Color3.new(0,1,0),"Y"), addAxis(Color3.new(0,0,1),"Z")
  135.  
  136. local fpsH, tpsH, pngH = {}, {}, {}
  137. local lastT = tick()
  138. local fr = 0
  139.  
  140. RunService.RenderStepped:Connect(function()
  141. if not frame.Visible then return end
  142. fr = fr + 1
  143. if tick() - lastT >= 1 then
  144. local fps = fr
  145. local tps = workspace:GetRealPhysicsFPS()
  146. local png = Stats.Network.ServerStatsItem["Data Ping"]:GetValue()
  147.  
  148. local function updateH(tab, val, bars, max)
  149. table.insert(tab, val); if #tab > 30 then table.remove(tab, 1) end
  150. for i, v in ipairs(tab) do
  151. if bars[i] then bars[i].Size = UDim2.new(1/30, -1, math.clamp(v/max, 0.1, 1), 0) end
  152. end
  153. end
  154. updateH(fpsH, fps, fBars, 60)
  155. updateH(tpsH, tps, tBars, 60)
  156. updateH(pngH, png, pBars, 300)
  157.  
  158. fr = 0; lastT = tick()
  159. end
  160.  
  161. local root = Player.Character and Player.Character:FindFirstChild("HumanoidRootPart")
  162. local hum = Player.Character and Player.Character:FindFirstChild("Humanoid")
  163. local speed = root and (root.Velocity * Vector3.new(1,0,1)).Magnitude * 1.097 or 0
  164.  
  165. info.Text = string.format(
  166. "<font color='#00FF00'>[ SYSTEM ]</font>\nFPS: %d | Ping: %s\nTPS: %.1f | Mem: %.1f MB\n\n" ..
  167. "<font color='#FFA500'>[ PLAYER ]</font>\nXYZ: %.1f, %.1f, %.1f\nSpeed: %.1f km/h\nState: %s\n\n" ..
  168. "<font color='#00AEEF'>[ CURSOR ]</font>\nTarget: %s\nDist: %.1f",
  169. fpsH[#fpsH] or 0, Stats.Network.ServerStatsItem["Data Ping"]:GetValueString(),
  170. workspace:GetRealPhysicsFPS(), Stats:GetTotalMemoryUsageMb(),
  171. root and root.Position.X or 0, root and root.Position.Y or 0, root and root.Position.Z or 0,
  172. speed, hum and tostring(hum:GetState()):gsub("Enum.HumanoidStateType.", "") or "N/A",
  173. Mouse.Target and Mouse.Target.Name:sub(1,15) or "None",
  174. (root and Mouse.Target) and (root.Position - Mouse.Target.Position).Magnitude or 0
  175. )
  176.  
  177. local cf = Camera.CFrame
  178. local function rot(gui, vec)
  179. local loc = cf:VectorToObjectSpace(vec)
  180. gui.Position = UDim2.new(0.5 + (loc.X * 0.4), 0, 0.5 - (loc.Y * 0.4), 0)
  181. gui.Rotation = math.deg(math.atan2(loc.X, loc.Y))
  182. gui.BackgroundTransparency = loc.Z < 0 and 0 or 0.7
  183. end
  184. rot(axX, Vector3.new(1,0,0)); rot(axY, Vector3.new(0,1,0)); rot(axZ, Vector3.new(0,0,1))
  185. end)
  186.  
  187. btn.MouseButton1Click:Connect(function()
  188. frame.Visible = not frame.Visible
  189. gizmo.Visible = frame.Visible
  190. end)
  191.  
  192. UserInputService.InputBegan:Connect(function(i, p)
  193. if not p and i.KeyCode == Enum.KeyCode.F3 then
  194. frame.Visible = not frame.Visible
  195. gizmo.Visible = frame.Visible
  196. end
  197. end)
  198.  
Advertisement
Add Comment
Please, Sign In to add comment