Memory Category | Instances |
---|
Value Type | Instance |
---|---|
Category | State |
Can Load | false |
Can Save | false |
Value Type | bool |
---|---|
Security | RobloxScriptSecurity |
Category | Data |
Can Load | false |
Can Save | false |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
id | int64 | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
stringToCopy | string | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Value Type | bool |
---|---|
Category | Data |
Can Load | false |
Can Save | false |
Value Type | bool |
---|---|
Category | Data |
Can Load | false |
Can Save | false |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
badgeId | int64 | none |
Return Type | string |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | string |
---|---|
Security | RobloxScriptSecurity |
Gets the explorer icon for a given class.
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
className | string | none |
Return Type | Dictionary |
---|---|
Security | PluginSecurity |
GetClassIcon returns the icon for a class as displayed in Studio's explorer panel. className is the name of an existing Roblox class. If successful, a table with the following fields is returned:
These correspond to the Image, ImageRectOffset, and ImageRectSize properties of an ImageLabel or ImageButton. The values of each fields can be set directly to its corresponding property to display the icon correctly.
If the given class does not exist, then following error is thrown:
GetClassIcon: CLASS is not a Roblox class.
Where CLASS
is the value of the given className.
Generate a GUI displaying the entire game tree.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
local StudioService = game:GetService("StudioService") local TextService = game:GetService("TextService") local StarterGui = game:GetService("StarterGui") -- Get base size of icon, assuming all icons have the same size. local iconSize = StudioService:GetClassIcon("Instance").ImageRectSize local font = Enum.Font.SourceSans local fontSize = iconSize.Y local labelTextOffset = 2 -- Create label template. local labelTemplate = Instance.new("Frame") labelTemplate.Name = "ClassLabel" labelTemplate.BackgroundTransparency = 1 local iconTemplate = Instance.new("ImageLabel", labelTemplate) iconTemplate.Name = "IconLabel" iconTemplate.Size = UDim2.new(0, iconSize.X, 0, iconSize.Y) iconTemplate.BackgroundTransparency = 1 local textTemplate = Instance.new("TextLabel", labelTemplate) textTemplate.Name = "TextLabel" textTemplate.Position = UDim2.new(0, iconSize.X + labelTextOffset, 0, 0) textTemplate.TextXAlignment = Enum.TextXAlignment.Left textTemplate.BackgroundTransparency = 1 textTemplate.TextColor3 = Color3.new(1, 1, 1) -- Generate labels. local maxWidth = 0 local labels = {} local function createLabels(objects, depth) for i, object in pairs(objects) do -- Some objects are not friendly to being indexed. local ok, name = pcall(function() return object.Name end) if ok and object.ClassName ~= "" then local icon = StudioService:GetClassIcon(object.ClassName) local textSize = TextService:GetTextSize(name, fontSize, font, Vector2.new(0, 0)) local label = labelTemplate:Clone() label.Position = UDim2.new(0, depth * iconSize.X, 0, #labels * iconSize.Y) label.Size = UDim2.new(0, iconSize.X + textSize.X + labelTextOffset, 0, iconSize.Y) label.IconLabel.Image = icon.Image label.IconLabel.ImageRectOffset = icon.ImageRectOffset label.IconLabel.ImageRectSize = icon.ImageRectSize label.TextLabel.Text = name label.TextLabel.Size = UDim2.new(0, textSize.X, 0, iconSize.Y) local width = label.Position.X.Offset + label.Size.X.Offset if width > maxWidth then maxWidth = width end labels[#labels + 1] = label createLabels(object:GetChildren(), depth + 1) end end end createLabels(game:GetChildren(), 0) -- Generate GUI. local screen = Instance.new("ScreenGui") local container = Instance.new("ScrollingFrame", screen) local width = maxWidth + container.ScrollBarThickness container.Position = UDim2.new(0, 10, 0, 10) container.Size = UDim2.new(0, width, 1, -20) container.CanvasSize = UDim2.new(0, width, 0, #labels * iconSize.Y) container.BackgroundColor3 = Color3.new(0, 0, 0) container.BackgroundTransparency = 0.3 container.BorderSizePixel = 0 for _, label in pairs(labels) do label.Parent = container end screen.Parent = game.StarterGui |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | bool |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
category | string | none |
Return Type | Dictionary |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | string |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | string |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | string |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | int64 |
---|---|
Security | PluginSecurity |
Parameters | 3 |
---|
Name | Type | Default |
---|---|---|
origin | Vector3 | none |
direction | Vector3 | none |
raycastParams | RaycastParams | RaycastParams{IgnoreWater=false, BruteForceAllSlow=false, RespectCanCollide=false, CollisionGroup=Default, FilterDescendantsInstances={}} |
Return Type | RaycastResult |
---|---|
Security | PluginSecurity |
Value Type | float |
---|---|
Category | Data |
Can Load | false |
Can Save | false |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | bool |
---|---|
Security | RobloxScriptSecurity |
Value Type | Instance |
---|---|
Security | RobloxScriptSecurity |
Category | Data |
Can Load | false |
Can Save | false |
Value Type | string |
---|---|
Security | RobloxScriptSecurity |
Category | Data |
Can Load | false |
Can Save | false |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
assetId | int64 | none |
Return Type | bool |
---|---|
Security | RobloxScriptSecurity |
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
assetId | int64 | none |
currentAssetVersion | int64 | none |
Return Type | bool |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
pageIdentifier | string | none |
Security | RobloxScriptSecurity |
---|
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
userId | int64 | none |
assetId | int64 | none |
Security | RobloxScriptSecurity |
---|
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
pluginId | string | none |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
instances | Objects | none |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
instances | Objects | none |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
url | string | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Value Type | bool |
---|---|
Security | RobloxScriptSecurity |
Category | Data |
Can Load | false |
Can Save | false |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
fileTypeFilter | Array | {} |
Return Type | Instance |
---|---|
Security | PluginSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
fileTypeFilter | Array | {} |
Return Type | Objects |
---|---|
Security | PluginSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
closeMode | StudioCloseMode | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Value Type | float |
---|---|
Category | Data |
Can Load | false |
Can Save | false |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
success | bool | none |
Security | RobloxScriptSecurity |
---|
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
assetId | int64 | none |
state | bool | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Value Type | bool |
---|---|
Security | RobloxScriptSecurity |
Category | Data |
Can Load | false |
Can Save | false |
Value Type | bool |
---|---|
Category | Data |
Can Load | false |
Can Save | false |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
placeId | int64 | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Value Type | string |
---|---|
Category | State |
Can Load | false |
Can Save | false |
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
assetId | int64 | none |
assetVersionId | int64 | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
assetId | int64 | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Value Type | bool |
---|---|
Category | Data |
Can Load | true |
Can Save | false |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | bool |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
state | int | none |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
uploadUrl | string | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
name | string | none |
Security | RobloxScriptSecurity |
---|
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
success | bool | none |
gameId | int64 | none |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
isOverwritePublish | bool | none |
Security | RobloxScriptSecurity |
---|
Parameters | 3 |
---|
Name | Type | Default |
---|---|---|
showGameSelect | bool | none |
isPublish | bool | none |
closeMode | StudioCloseMode | none |
Security | RobloxScriptSecurity |
---|
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
newName | string | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
turnOn | bool | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
newName | string | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 3 |
---|
Name | Type | Default |
---|---|---|
showGameSelect | bool | none |
isPublish | bool | none |
closeMode | StudioCloseMode | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 3 |
---|
Name | Type | Default |
---|---|---|
universeId | int64 | none |
placeId | int64 | none |
groupId | int64 | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
universeId | int64 | none |
placeId | int64 | none |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
name | string | none |
Security | RobloxScriptSecurity |
---|
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
success | bool | none |
gameId | int64 | none |
Security | RobloxScriptSecurity |
---|
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | string |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | bool |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
assetTypeToImport | int | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
isSuccessful | bool | none |
errorMessage | string | none |
Security | RobloxScriptSecurity |
---|
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
instances | Objects | none |
name | string | none |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
isOverwritePublish | bool | none |
Security | RobloxScriptSecurity |
---|
Parameters | 3 |
---|
Name | Type | Default |
---|---|---|
showGameSelect | bool | none |
isPublish | bool | none |
closeMode | StudioCloseMode | none |
Security | RobloxScriptSecurity |
---|
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
assetId | int64 | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
prompt | string | none |
fileTypeFilter | Array | {} |
Return Type | Instance |
---|---|
Security | PluginSecurity |
Parameters | 2 |
---|
Name | Type | Default |
---|---|---|
prompt | string | none |
fileTypeFilter | Array | {} |
Return Type | Objects |
---|---|
Security | PluginSecurity |
Parameters | 3 |
---|
Name | Type | Default |
---|---|---|
universeId | int64 | none |
placeId | int64 | none |
groupId | int64 | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
instances | Objects | none |
Return Type | string |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
newName | string | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
turnOn | bool | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 1 |
---|
Name | Type | Default |
---|---|---|
newName | string | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 3 |
---|
Name | Type | Default |
---|---|---|
showGameSelect | bool | none |
isPublish | bool | none |
closeMode | StudioCloseMode | none |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |
Parameters | 0 |
---|
Name | Type | Default |
---|---|---|
No parameters. |
Return Type | void |
---|---|
Security | RobloxScriptSecurity |