code :
local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetDataStore("TimeStats")
game.Players.PlayerAdded:Connect(function(Player)
local Leaderstats = Instance.new("Folder")
Leaderstats.Name = "leaderstats"
Leaderstats.Parent = Player
local Minutes = Instance.new("IntValue")
Minutes.Name = "Time Worshipping"
Minutes.Value = 0
Minutes.Parent = Leaderstats
local Data = DataStore:GetAsync(Player.UserId)
if Data then
Minutes.Value = Data
end
coroutine.resume(coroutine.create(function()
while true do
wait(1)
Minutes.Value = Minutes.Value + 1
end
end))
end)
game.Players.PlayerRemoving:Connect(function(Player)
DataStore:SetAsync(Player.UserId, Player.leaderstats.Time_Worshipping.Value)
end)
Error i get = Time_Worshipping is not a valid member of Folder 01:11:57.384 - Stack Begin 01:11:57.384 - Script 'Workspace.Minute Leaderboard (Saves)', Line 27 01:11:57.385 - Stack End
Any help would really be appreciated thx

2 comments
I don't think there's supposed to be a dot at Player.leaderstats. < there["Time Worshipping"]
ooops, forgot to remove it