Sample

local acceptedTOS = TOSAccepted();
if(acceptedTOS) then
   --user accepted the Terms of Service
else
   --user has not accepted Terms of Service
end