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

I want to use datastore to save bool values for a GUI. So how should I do it?

Asked by
Ifesol 4
2 years ago

I want to use an if statement to trigger the GUI to pop-up after I reset or when I rejoin.

something like these

If Unlocked5.Value = = true then
script.Parent.Parent.Visible = true
end

But when i reset or rejoin. It doesnt work. Is the problem from the datastore or the local script.

0
Can you give us the whole script? sne_123456 439 — 2y
0
Okay, but its basically the datastore and this script Ifesol 4 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

One problem I can see from those 3 lines is that there is a space between the two ='s.

This would throw an error, and you can try looking at output to view your errors. Output can help you debug your code, and the space between the = = is the only one I can see from what you've shown us.

Ad

Answer this question