I have virtually never saved data, not in practice certainly. I was wondering how I could do this.
I am not sure what even counts as a “visit” for Roblox, I do feel that they don’t just count 1 second leave-joins so I’d actually want a raw join counter and also playtimes over a minute counter.
Although I could go about making this my approach might be crude so I am open to advice before doing it myself.
Paste this into command bar before starting: game:GetService("DataStoreService"):GetDataStore("JoinCount"):SetAsync("joins-",1)
local DataStoreService = game:GetService("DataStoreService")
local JoinCount = DataStoreService:GetDataStore("JoinCount")
To access the total number of player joins saved with this method, you can do JoinCount:GetAsync(“joins-”)