Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to save the following like leaderstats?

Just like how a save script saves leaderstas , I want to save the text inside a test label, I HAVE MY REASONS -_-

if p:findFirstChild(script.parent.textlabel) then
p:SaveInstance()
end

what i need: A way to save a text in a textlabel in a script in the starter Gui

http://prntscr.com/9vq2lo

1 comment

1

Instead, save the string in DataStores and then load it when the server begins.

1 answer

SaveInstance saves objects not strings. Use SaveString instead.

game.Players.PlayerAdded:connect(function(player)
	if player:WaitForDataReady() then
		player:SaveString(textlabel.Text)
	end
end)

1 comment

0

Um, don't use datapersistance.

This discussion is preserved as it was. New answers, comments, and votes are closed.