Glorpia Docs
Scripting / Model method

ScaleTo()

Sets a Model to an absolute uniform scale around its current pivot.

Syntax

model:ScaleTo(scale)

Parameters

NameTypeDescription
scalenumberAbsolute uniform scale. Must be finite and greater than 0.

Behavior

ScaleTo() scales every descendant BasePart's size and pivot-relative position while preserving rotation. Nested Models scale with their containing Model.

The value is absolute rather than multiplicative. For example, ScaleTo(2) sets the Model to 2x even if its current scale is 1.5.

The Model must contain at least one descendant BasePart, and resulting BasePart dimensions must remain within Glorpia's supported size range.

Example

Luau
local model = workspace:WaitForChild("Vehicle")
model:ScaleTo(2)
print(model:GetScale())

Related