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

How can I save a new value of a StringValue after I die?

Asked by 9 years ago

Problem is inside a PlayerGui. When I click a button (Tool3) a new value for a StringValue (ToolSelected) inside a button named "Go" is given which is "Tool3" (Default Value is: "Tool1"). If I die the value again is "Tool1" instead of the previous one ("Tool3"). How i can save the previous Value so if I die when I respawn the Value is still "Tool3"

ToolSelected = script.Parent.Parent.Parent.Parent.Go.ToolSelected

function click()
    ToolSelected.Value =  "Tool3"
end

0
Code block please. unmiss 337 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Sorry, this isn't an answer to your question, but an answer to your formatting

First, Your script should go in a scripting box. When you ask a question, click the little circular blue button , and then put your script inside of the ~~~

--Right here, see? This makes it look cleaner, and easier for people to find the bugs!

second, most people aren't going to read that huge paragraph up there, dumb it down into 2-3 sentences, but not so simple that it isn't what you want!

Try this m8!

0
First time I am asking a question here, didn't know. oby11omi 5 — 9y
Ad

Answer this question