LoadString (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Crazypotato4
If you're going to add an example to a page, then please do it right. Try not to make more mistakes like these.
>Itunes89
Line 9: Line 9:
{{clear floats}}  
{{clear floats}}  
<br />
<br />
==Example==
fyck you all '''I"M QUITTING ROBLOX SO FUCK ALL YOU CUNTS!!'''
This code will load the string saved under the key "hi".
<code lua>
game.Players.PlayerAdded:connect(function(player) --Connection line. Fires when a player leaves the game.
player:WaitForDataReady() --Waiting for the player's data to be ready.
print(player:LoadString("hi")) --Prints to the output whatever value is saved to the key "hi" in that player.
end
end)
</code>


==See Also==
==See Also==

Revision as of 02:44, 17 April 2012

LoadString( string key )
Returns string
Description: Returns a string value that was previously saved to the player via SaveString with the same key. Returns an empty string ("") if key doesn't exist, not nil.
Member of: Player


fyck you all I"M QUITTING ROBLOX SO FUCK ALL YOU CUNTS!!

See Also