MaxproGlitcher

Obtenir tout sur un joueurs en jeux .lua

Jun 5th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.11 KB | None | 0 0
  1.  
  2. local Players = game:GetService("Players")
  3. local UserInputService = game:GetService("UserInputService")
  4. local TweenService = game:GetService("TweenService")
  5. local HttpService = game:GetService("HttpService")
  6. local RunService = game:GetService("RunService")
  7.  
  8. local player = Players.LocalPlayer
  9. local playerGui = player:WaitForChild("PlayerGui")
  10.  
  11. local screenGui = Instance.new("ScreenGui")
  12. screenGui.Name = "RobloxConsole"
  13. screenGui.Parent = playerGui
  14. screenGui.ResetOnSpawn = false
  15.  
  16. local consoleFrame = Instance.new("Frame")
  17. consoleFrame.Name = "ConsoleFrame"
  18. consoleFrame.Size = UDim2.new(0, 800, 0, 500)
  19. consoleFrame.Position = UDim2.new(0.5, -400, 0.5, -250)
  20. consoleFrame.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
  21. consoleFrame.BorderSizePixel = 2
  22. consoleFrame.BorderColor3 = Color3.fromRGB(128, 128, 128)
  23. consoleFrame.Parent = screenGui
  24. consoleFrame.Visible = false
  25.  
  26. local titleBar = Instance.new("Frame")
  27. titleBar.Name = "TitleBar"
  28. titleBar.Size = UDim2.new(1, 0, 0, 30)
  29. titleBar.Position = UDim2.new(0, 0, 0, 0)
  30. titleBar.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  31. titleBar.BorderSizePixel = 0
  32. titleBar.Parent = consoleFrame
  33.  
  34. local titleLabel = Instance.new("TextLabel")
  35. titleLabel.Name = "TitleLabel"
  36. titleLabel.Size = UDim2.new(1, -60, 1, 0)
  37. titleLabel.Position = UDim2.new(0, 10, 0, 0)
  38. titleLabel.BackgroundTransparency = 1
  39. titleLabel.Text = "Roblox Player Info Console"
  40. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. titleLabel.TextScaled = true
  42. titleLabel.Font = Enum.Font.SourceSansLight
  43. titleLabel.TextXAlignment = Enum.TextXAlignment.Left
  44. titleLabel.Parent = titleBar
  45.  
  46. local closeButton = Instance.new("TextButton")
  47. closeButton.Name = "CloseButton"
  48. closeButton.Size = UDim2.new(0, 30, 0, 30)
  49. closeButton.Position = UDim2.new(1, -30, 0, 0)
  50. closeButton.BackgroundColor3 = Color3.fromRGB(196, 43, 28)
  51. closeButton.BorderSizePixel = 0
  52. closeButton.Text = "×"
  53. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  54. closeButton.TextScaled = true
  55. closeButton.Font = Enum.Font.SourceSansBold
  56. closeButton.Parent = titleBar
  57.  
  58. local outputFrame = Instance.new("ScrollingFrame")
  59. outputFrame.Name = "OutputFrame"
  60. outputFrame.Size = UDim2.new(1, -20, 1, -80)
  61. outputFrame.Position = UDim2.new(0, 10, 0, 35)
  62. outputFrame.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
  63. outputFrame.BorderSizePixel = 1
  64. outputFrame.BorderColor3 = Color3.fromRGB(64, 64, 64)
  65. outputFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  66. outputFrame.ScrollBarThickness = 8
  67. outputFrame.Parent = consoleFrame
  68.  
  69. local inputFrame = Instance.new("Frame")
  70. inputFrame.Name = "InputFrame"
  71. inputFrame.Size = UDim2.new(1, -20, 0, 35)
  72. inputFrame.Position = UDim2.new(0, 10, 1, -40)
  73. inputFrame.BackgroundColor3 = Color3.fromRGB(32, 32, 32)
  74. inputFrame.BorderSizePixel = 1
  75. inputFrame.BorderColor3 = Color3.fromRGB(64, 64, 64)
  76. inputFrame.Parent = consoleFrame
  77.  
  78. local promptLabel = Instance.new("TextLabel")
  79. promptLabel.Name = "PromptLabel"
  80. promptLabel.Size = UDim2.new(0, 30, 1, 0)
  81. promptLabel.Position = UDim2.new(0, 5, 0, 0)
  82. promptLabel.BackgroundTransparency = 1
  83. promptLabel.Text = ">"
  84. promptLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  85. promptLabel.TextScaled = true
  86. promptLabel.Font = Enum.Font.SourceSans
  87. promptLabel.TextXAlignment = Enum.TextXAlignment.Left
  88. promptLabel.Parent = inputFrame
  89.  
  90. local inputBox = Instance.new("TextBox")
  91. inputBox.Name = "InputBox"
  92. inputBox.Size = UDim2.new(1, -35, 1, -4)
  93. inputBox.Position = UDim2.new(0, 35, 0, 2)
  94. inputBox.BackgroundTransparency = 1
  95. inputBox.Text = ""
  96. inputBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. inputBox.TextScaled = true
  98. inputBox.Font = Enum.Font.SourceSans
  99. inputBox.TextXAlignment = Enum.TextXAlignment.Left
  100. inputBox.PlaceholderText = "Enter command..."
  101. inputBox.PlaceholderColor3 = Color3.fromRGB(128, 128, 128)
  102. inputBox.ClearTextOnFocus = false
  103. inputBox.Parent = inputFrame
  104.  
  105. local RobloxConsole = {}
  106. RobloxConsole.__index = RobloxConsole
  107.  
  108. function RobloxConsole.new()
  109. local self = setmetatable({}, RobloxConsole)
  110. self.outputLines = {}
  111. self.commandHistory = {}
  112. self.historyIndex = 0
  113. self.isVisible = false
  114.  
  115. self.commands = {
  116. ["help"] = "Show all available commands",
  117. ["info"] = "Get player information (info [username/userid])",
  118. ["list"] = "List all players in the server",
  119. ["age"] = "Get account age (age [username/userid])",
  120. ["avatar"] = "Get avatar information (avatar [username/userid])",
  121. ["clear"] = "Clear the console",
  122. ["exit"] = "Hide the console",
  123. ["ping"] = "Show ping and FPS",
  124. ["tp"] = "Teleport to a player (tp [username])"
  125. }
  126.  
  127. return self
  128. end
  129.  
  130. function RobloxConsole:addOutput(text, color)
  131. color = color or Color3.fromRGB(255, 255, 255)
  132.  
  133. local outputLabel = Instance.new("TextLabel")
  134. outputLabel.Name = "OutputLine"
  135. outputLabel.Size = UDim2.new(1, -10, 0, 20)
  136. outputLabel.Position = UDim2.new(0, 5, 0, #self.outputLines * 20)
  137. outputLabel.BackgroundTransparency = 1
  138. outputLabel.Text = text
  139. outputLabel.TextColor3 = color
  140. outputLabel.TextScaled = true
  141. outputLabel.Font = Enum.Font.SourceSans
  142. outputLabel.TextXAlignment = Enum.TextXAlignment.Left
  143. outputLabel.TextYAlignment = Enum.TextYAlignment.Top
  144. outputLabel.Parent = outputFrame
  145.  
  146. table.insert(self.outputLines, outputLabel)
  147.  
  148. outputFrame.CanvasSize = UDim2.new(0, 0, 0, #self.outputLines * 20)
  149. outputFrame.CanvasPosition = Vector2.new(0, outputFrame.CanvasSize.Y.Offset)
  150.  
  151. if #self.outputLines > 100 then
  152. self.outputLines[1]:Destroy()
  153. table.remove(self.outputLines, 1)
  154.  
  155. for i, line in ipairs(self.outputLines) do
  156. line.Position = UDim2.new(0, 5, 0, (i - 1) * 20)
  157. end
  158. end
  159. end
  160.  
  161. function RobloxConsole:printWelcome()
  162. self:addOutput("=" .. string.rep("=", 50), Color3.fromRGB(0, 255, 0))
  163. self:addOutput("ROBLOX PLAYER INFO CONSOLE", Color3.fromRGB(0, 255, 255))
  164. self:addOutput("=" .. string.rep("=", 50), Color3.fromRGB(0, 255, 0))
  165. self:addOutput("Type 'help' for a list of commands", Color3.fromRGB(255, 255, 0))
  166. self:addOutput("", Color3.fromRGB(255, 255, 255))
  167. end
  168.  
  169. function RobloxConsole:printHelp()
  170. self:addOutput("AVAILABLE COMMANDS:", Color3.fromRGB(0, 255, 255))
  171. self:addOutput(string.rep("-", 40), Color3.fromRGB(128, 128, 128))
  172. for command, description in pairs(self.commands) do
  173. self:addOutput(string.format("• %-10s - %s", command, description), Color3.fromRGB(255, 255, 255))
  174. end
  175. self:addOutput("", Color3.fromRGB(255, 255, 255))
  176. end
  177.  
  178. function RobloxConsole:getUserInfo(input)
  179. local targetPlayer = Players[input] or Players:FindFirstChild(input)
  180.  
  181. if not targetPlayer then
  182. self:addOutput("Player not found: " .. input, Color3.fromRGB(255, 0, 0))
  183. return
  184. end
  185.  
  186. self:addOutput("PLAYER INFO:", Color3.fromRGB(0, 255, 255))
  187. self:addOutput(string.rep("-", 30), Color3.fromRGB(128, 128, 128))
  188. self:addOutput("• Name: " .. targetPlayer.Name, Color3.fromRGB(255, 255, 255))
  189. self:addOutput("• Display Name: " .. targetPlayer.DisplayName, Color3.fromRGB(255, 255, 255))
  190. self:addOutput("• ID: " .. targetPlayer.UserId, Color3.fromRGB(255, 255, 255))
  191. self:addOutput("• Account Age: " .. targetPlayer.AccountAge .. " days", Color3.fromRGB(255, 255, 255))
  192. self:addOutput("• Status: Online", Color3.fromRGB(0, 255, 0))
  193. self:addOutput("• Profile: roblox.com/users/" .. targetPlayer.UserId, Color3.fromRGB(0, 255, 255))
  194.  
  195. if targetPlayer.Character then
  196. local humanoid = targetPlayer.Character:FindFirstChild("Humanoid")
  197. if humanoid then
  198. self:addOutput("• Health: " .. math.floor(humanoid.Health) .. "/" .. humanoid.MaxHealth, Color3.fromRGB(255, 255, 255))
  199. self:addOutput("• Walk Speed: " .. humanoid.WalkSpeed, Color3.fromRGB(255, 255, 255))
  200. end
  201. end
  202. self:addOutput("", Color3.fromRGB(255, 255, 255))
  203. end
  204.  
  205. function RobloxConsole:listPlayers()
  206. local playerList = Players:GetPlayers()
  207.  
  208. self:addOutput("PLAYERS IN SERVER (" .. #playerList .. "):", Color3.fromRGB(0, 255, 255))
  209. self:addOutput(string.rep("-", 40), Color3.fromRGB(128, 128, 128))
  210.  
  211. for i, p in ipairs(playerList) do
  212. local status = (p.Character and "Online") or "Offline"
  213. self:addOutput(string.format("• %s %s (ID: %d) - %d days", status, p.Name, p.UserId, p.AccountAge), Color3.fromRGB(255, 255, 255))
  214. end
  215. self:addOutput("", Color3.fromRGB(255, 255, 255))
  216. end
  217.  
  218. function RobloxConsole:showPing()
  219. local ping = player:GetNetworkPing() * 1000
  220. local fps = math.floor(1 / RunService.Heartbeat:Wait())
  221.  
  222. self:addOutput("CONNECTION STATS:", Color3.fromRGB(0, 255, 255))
  223. self:addOutput("• Ping: " .. math.floor(ping) .. " ms", Color3.fromRGB(255, 255, 255))
  224. self:addOutput("• FPS: " .. fps, Color3.fromRGB(255, 255, 255))
  225. self:addOutput("", Color3.fromRGB(255, 255, 255))
  226. end
  227.  
  228. function RobloxConsole:teleportToPlayer(username)
  229. local targetPlayer = Players[username] or Players:FindFirstChild(username)
  230.  
  231. if not targetPlayer then
  232. self:addOutput("Player not found: " .. username, Color3.fromRGB(255, 0, 0))
  233. return
  234. end
  235.  
  236. if not targetPlayer.Character or not targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
  237. self:addOutput("Cannot teleport to " .. username, Color3.fromRGB(255, 0, 0))
  238. return
  239. end
  240.  
  241. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  242. player.Character.HumanoidRootPart.CFrame = targetPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 3)
  243. self:addOutput("Teleported to " .. targetPlayer.Name, Color3.fromRGB(0, 255, 0))
  244. else
  245. self:addOutput("Teleport error", Color3.fromRGB(255, 0, 0))
  246. end
  247. end
  248.  
  249. function RobloxConsole:clearConsole()
  250. for _, line in ipairs(self.outputLines) do
  251. line:Destroy()
  252. end
  253. self.outputLines = {}
  254. outputFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  255. self:printWelcome()
  256. end
  257.  
  258. function RobloxConsole:processCommand(input)
  259. input = input:gsub("^%s+", ""):gsub("%s+$", "")
  260.  
  261. if input == "" then
  262. return
  263. end
  264.  
  265. table.insert(self.commandHistory, input)
  266. if #self.commandHistory > 20 then
  267. table.remove(self.commandHistory, 1)
  268. end
  269. self.historyIndex = #self.commandHistory + 1
  270.  
  271. self:addOutput("> " .. input, Color3.fromRGB(0, 255, 0))
  272.  
  273. local parts = {}
  274. for word in input:gmatch("%S+") do
  275. table.insert(parts, word)
  276. end
  277.  
  278. if #parts == 0 then
  279. return
  280. end
  281.  
  282. local command = parts[1]:lower()
  283. local args = {}
  284. for i = 2, #parts do
  285. table.insert(args, parts[i])
  286. end
  287.  
  288. if command == "help" then
  289. self:printHelp()
  290. elseif command == "info" then
  291. if #args > 0 then
  292. self:getUserInfo(args[1])
  293. else
  294. self:addOutput("Usage: info [username]", Color3.fromRGB(255, 0, 0))
  295. end
  296. elseif command == "list" then
  297. self:listPlayers()
  298. elseif command == "age" then
  299. if #args > 0 then
  300. self:getUserInfo(args[1])
  301. else
  302. self:addOutput("Usage: age [username]", Color3.fromRGB(255, 0, 0))
  303. end
  304. elseif command == "clear" then
  305. self:clearConsole()
  306. elseif command == "exit" then
  307. self:toggle()
  308. elseif command == "ping" then
  309. self:showPing()
  310. elseif command == "tp" then
  311. if #args > 0 then
  312. self:teleportToPlayer(args[1])
  313. else
  314. self:addOutput("Usage: tp [username]", Color3.fromRGB(255, 0, 0))
  315. end
  316. else
  317. self:addOutput("Unknown command: " .. command, Color3.fromRGB(255, 0, 0))
  318. self:addOutput("Type 'help' for a list of commands", Color3.fromRGB(255, 255, 0))
  319. end
  320. end
  321.  
  322. function RobloxConsole:toggle()
  323. self.isVisible = not self.isVisible
  324. consoleFrame.Visible = self.isVisible
  325.  
  326. if self.isVisible then
  327. inputBox:CaptureFocus()
  328. if #self.outputLines == 0 then
  329. self:printWelcome()
  330. end
  331. end
  332. end
  333.  
  334. local console = RobloxConsole.new()
  335.  
  336. closeButton.MouseButton1Click:Connect(function()
  337. console:toggle()
  338. end)
  339.  
  340. inputBox.FocusLost:Connect(function(enterPressed)
  341. if enterPressed then
  342. local command = inputBox.Text
  343. inputBox.Text = ""
  344. console:processCommand(command)
  345. inputBox:CaptureFocus()
  346. end
  347. end)
  348.  
  349. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  350. if gameProcessed then return end
  351.  
  352. if input.KeyCode == Enum.KeyCode.F1 then
  353. console:toggle()
  354. elseif input.KeyCode == Enum.KeyCode.Up and console.isVisible then
  355. if console.historyIndex > 1 then
  356. console.historyIndex = console.historyIndex - 1
  357. inputBox.Text = console.commandHistory[console.historyIndex] or ""
  358. end
  359. elseif input.KeyCode == Enum.KeyCode.Down and console.isVisible then
  360. if console.historyIndex < #console.commandHistory then
  361. console.historyIndex = console.historyIndex + 1
  362. inputBox.Text = console.commandHistory[console.historyIndex] or ""
  363. else
  364. console.historyIndex = #console.commandHistory + 1
  365. inputBox.Text = ""
  366. end
  367. end
  368. end)
  369.  
  370. local dragging = false
  371. local dragStart = nil
  372. local startPos = nil
  373.  
  374. titleBar.InputBegan:Connect(function(input)
  375. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  376. dragging = true
  377. dragStart = input.Position
  378. startPos = consoleFrame.Position
  379. end
  380. end)
  381.  
  382. titleBar.InputChanged:Connect(function(input)
  383. if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
  384. local delta = input.Position - dragStart
  385. consoleFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  386. end
  387. end)
  388.  
  389. titleBar.InputEnded:Connect(function(input)
  390. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  391. dragging = false
  392. end
  393. end)
  394.  
  395. wait(2)
  396. console:toggle()
  397. console:addOutput("Press F1 to toggle menu", Color3.fromRGB(255, 255, 0))
  398.  
Advertisement
Add Comment
Please, Sign In to add comment