I have a problem, i want to make a value that will count game visits, i have idea how this could work but i do not know how.
My idea:
local placeId = 12345678 local value = script.Parent
value.Value = placeId.VisitCount -- This does not work but should work like that I GUESS.
Please help. Thanks, kirda.
local ds = game:GetService("DataStoreService") visits = ds:GetDataStore("Visits") game.Players.PlayerAdded:Connect(function(plr) local data local suc, err = pcall(function() data = visits:GetAsync("Visits") end) if suc then visits:SetAsync(data + 1) end data = data + 1 end)
I really don't recommend this but it's a weird way to save visits and might not count every visit so... idk listen to Nguyenlegiahung use https service