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
| Name | Value | Description |
|---|---|---|
| Character | 0 | Use the player's character model world position as the heatmap location (default). |
| Camera | 1 | Use the current workspace camera's world position as the player's heatmap location. |
| ObjectPosition | 2 | Use 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).
| Field | Value |
|---|---|
| value | 0 |
Camera
Use the current workspace camera's world position as the player's heatmap location.
| Field | Value |
|---|---|
| value | 1 |
ObjectPosition
Use the world position of a configured target object as the player's heatmap location.
| Field | Value |
|---|---|
| value | 2 |