SaveNumber (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac
No longer AdminOnly.
>MrNicNac
No longer AdminOnly.
(No difference)

Revision as of 15:45, 9 July 2011

SaveNumber( String key, Number value )
Returns nil
Description: Saves a number value that can be reloaded from any server via LoadNumber. The DataCost taken up by a saved number can be removed by saving 0 as the value.
Member of: Player


game.Players.PlayerAdded:connect(function(newPlayer)
	newPlayer:WaitForDataReady()
	newPlayer:SaveNumber("Number", game.Workspace.Number.Value)
end)