1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

LocationType

Controls which point in 3D space is sampled as a player's location when HeatmapService records positional heatmap events. The value is stored per Player and defaults to LocationType.Character. See the items below for each sampling mode.

Items

NameValueDescription
Character0Use the player's character model world position as the heatmap location (default).
Camera1Use the current workspace camera's world position as the player's heatmap location.
ObjectPosition2Use the world position of a configured target object as the player's heatmap location.

Character

Use the player's character model world position as the heatmap location (default).

FieldValue
value0

Camera

Use the current workspace camera's world position as the player's heatmap location.

FieldValue
value1

ObjectPosition

Use the world position of a configured target object as the player's heatmap location.

FieldValue
value2