Skip to content

Api > CloudVariables > RequestToPublish()


CloudVariables.RequestToPublish()⚓︎

Create a request for client to publish the variable changes to the server as soon as possible.

Usage⚓︎

CloudVariables:RequestToPublish()

Extra Detail⚓︎

Note that the client automatically performs this action every three minutes, however, you can call this function to request an immediate save to server. Calling this function more than once in a 3-minute interval will not yield any effect. This is a useful function to be called at the end of match to save the scores of the player, since there is high probability of some users leaving the game immediately after finishing the match.