The code sample located on the Pose:GetSubPoses page contains additional (arbitrary) whitespace. While the additional whitespace itself isn’t causing a direct issue, it is inconsistent and should probably be removed.
Code sample w/o arbitrary whitespace
local function resetPoses(parent)
-- both functions are equivalent to GetChildren
local poses = parent:IsA("Keyframe") and parent:GetPoses() or parent:IsA("Pose") and parent:GetSubPoses()
for _, pose in pairs(poses) do
if pose:IsA("Pose") then
pose.CFrame = CFrame.new()
-- recurse
resetPoses(pose)
end
end
end