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

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

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.

2 comments

0

Can you give us the whole script?

0

Okay, but its basically the datastore and this script

1 answer

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.

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