Snapshots
The snapshots utility is used by the simulation to take "snapshots" of player positions in the past for lag compensation.
Note
Times must be retrieved using workspace:GetServerTimeNow()
Methods
{[string]: CFrame}? GetPlayerAtTime ( Player Player number Time )
Returns an array containing the CFrame of each of the player's hitboxes in the past, returns nothing when no snapshots containing the player can be found.
{[Player]: {[string]: CFrame}} GetPlayersAtTime ( number Time )
Returns an array containing the CFrame of each of the hitboxes of every player in the past.
Snapshot?, Snapshot?, number? GetSnapshotsAtTime ( number Time )
Returns a tuple containing the previous snapshot, next snapshot and the fraction used for lerping between them, returns nothing if no snapshots can be found for the given time.
void CreatePlayersSnapshot ( number Time )
Creates a snapshot of every players hitbox at the given time.
Danger
This method should not be called or it may result in undefined behaviour, this is already called by SecureCast internally.