Volt

gethiddenproperty

Gets the value of a hidden property.

Syntax

gethiddenproperty(instance: Instance, property: string) -> any, boolean

Parameters

ParameterTypeDescription
instanceInstanceThe instance
propertystringThe hidden property name

Returns

TypeDescription
anyThe property value
booleanWhether the property was hidden

Description

gethiddenproperty retrieves the value of a property that isn't normally accessible through scripts.

Example

local part = Instance.new("Part")

-- Get a hidden property
local value, wasHidden = gethiddenproperty(part, "size_xml")
print("Value:", value)
print("Was hidden:", wasHidden)

Common Hidden Properties

ClassPropertyDescription
LocalScriptBytecodeCompiled bytecode
SoundRollOffModeSound falloff mode
HumanoidInternalHeadScaleInternal head scaling

Finding Hidden Properties

-- Example of reading protected properties
local player = game.Players.LocalPlayer
local character = player.Character

if character then
    local humanoid = character:FindFirstChild("Humanoid")
    if humanoid then
        local internal = gethiddenproperty(humanoid, "InternalHeadScale")
        print("Internal head scale:", internal)
    end
end

On this page