This script also adds 1 point per second. It's in sss. No errors.
Not saving somehow.
local dataStore = game:GetService("DataStoreService"):GetDataStore("randommeusumtime")
starterRolls = 0
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = plr
local points = Instance.new("IntValue")
points.Name = "Time Spent"
points.Value = dataStore
points.Parent = leaderstats
while true do
wait(1)
points.Value = points.Value + 1
end
end)
game.Players.PlayerRemoving:Connect(function(plr)
dataStore:SetAsync(plr.UserId, plr.leaderstats.points.Value)
end)

1 comment
Even after all your help, the script still wont save!! I dont get it. but good try on attempting to fix it.