Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to save a number in a Textbox Label to the datastore?

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago

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)
0
ive done that but then how does that save it to the Roblox datastore- Shadrocks12345 0 — 3y
Ad

Answer this question