GetDebugId (Method)

From Legacy Roblox Wiki
Revision as of 03:19, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</code>" to "</SyntaxHighlight>")
Jump to navigationJump to search
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
GetDebugId( int scopeLength )
Returns string
Description: Returns a coded string of the object's DebugId used internally by Roblox.
Member of: Instance


Example
function debugId(object, scopeLength)
  return object:GetDebugId(scopeLength)

end

print(debugId(Workspace)) --> 39FA_12 print(debugId(Workspace, 10)) --> 39FA2FEF4D_12 print(debugId(Workspace, math.huge)) --> 12

</SyntaxHighlight>


DebugID

A debug ID is an ID used in debugging processes. It allows a debugger to read each instruction before an application processes it. All objects in Roblox act like processes and each run instructions (or 'code') that can be debugged if needed.