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

Is it possible to have an intvalue on a block and save it with datasave?

I was wondering if i can created a block and if I touch it it will increase a value on the block and save? I know that it is possible to save values through stats assigned on the local player but is there anyways to assign those values and save it into the part itself?

2 comments

0

Is this value about how many times a player has touched a block or how many times the block has been touched cumulatively by all players?

0

Datastore can save a lot. If you're saving a value, that just becomes a part of the datastore table.

1 answer

✓ Accepted answer

Yes, the datastore can save anything. You will have to save the value with DataStoreService when it is clicked/server is closing and then load it when the server starts.

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