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 a number in a Textbox Label to the datastore?

Is it possible to save a number in a Textbox Label to the data store? if so, how?

Ive looked everywhere and still cannot figure out how to do it,

I basically have a gui that has a button and a text label. when the button is clicked, the label changes its number, but how will I go about to saving the new update to the label?

1 answer

Insert a NumberValue into the textlabel, save the number in there, then add a script to the number value that automatically updates the text to be the value of the number value; the script would go as follows;

local textlabel = script.Parent.Parent
local numbervalue = script.Parent

numbervalue.Changed:Connect(function()
	if numbervalue and textlabel then
		textlable.Text = numbervalue.Value
	end
end)

1 comment

0

ive done that but then how does that save it to the Roblox datastore-

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