Hi there, I’m currently working on my JTOH inspired Tower game and I am working on getting the datastores in place. What I need help with is accessing a table within the datastores and changing one of the values from false to true when you touch the winpad. Essentially this value will be checked by another script to see if you’ve beaten the tower already, if true you do not get a tower point, if false you do. How would I access and change the value from the table within a ontouch script?
This post is a little confusing, but I think I get what you mean. I would use a BoolValue
inside ServerStorage
(both of your scripts are server-sided, right?) to read and change the DataStore value.
The reading part should be easy, but for changing it, you would have to use :GetPropertyChangedSignal("Value")
inside the DataStore script to change the DataStore Value.
Hope this helped!
Thanks,
Fizzitix
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.