if you read your code before asking for help you can see that it’s only saving one datatype “onServerClosed” function
local success, result = protectedCall(function()
return dataStore:SetAsync("Data_"..player.UserId, {player.leaderstats.Clicks.Value, player.leaderstats.Money.Value, player.leaderstats.Rebirths.Value,player.PlayerGui.Stats.RCAmount.Value})
end)
I recommend getting an actual understanding of how to interact with rlua tables and how you would go about GetAsync() and SetAsync()'ing. alternatively you can just use the several various resources and tutorials such as Datastore2 and Profileservice