Hello scripters. I’m making an inventory in roblox studio, and whenever u press a buy button, an equipbutton gets visible. whenever the player rejoins the game, the equipbutton gets invisible. (ofcourse) How do I save the visibility if the equipbutton?
1 Like
Just use a Boolean value of either true or false and store that to indicate whether or not a button is visible.
You save a boolean value to a datastore
I used a boolean but the datastore of it doesn’t work. Can u help me with the script to save the value of the boolean? And where do I put the bool value? In replicatedstorage? or in player? Please help me further with this thanks.
You can save the value like this:
local table = {
visible = true or false
}
datastore:Set(table)