It's a script in Serverscriptstorage and yeah, it doesn't save. No errors. Why does it not save?
local Datastore2 = require(script.Parent.MainModule)
Datastore2.Combine("MainKey", "Coins", "Gems")
game.Players.PlayerAdded:Connect(function(plr)
local dataCoins = Datastore2("Coins", plr)
local dataGems = Datastore2("Gems", plr)
local folder = Instance.new("Folder", plr)
folder.Name = "Stats"
local coins = Instance.new("IntValue", folder)
local gems = Instance.new("IntValue", folder)
coins.Name = "Coins"
gems.Name = "Gems"
if dataCoins:Get() == nil then
coins.Value = dataCoins:Get()
print(coins.Value)
else
coins.Value = 0
end
if dataGems:Get() == nil then
gems.Value = dataGems:Get()
print(gems.Value)
else
gems.Value = 0
end
coins.Changed:Connect(function()
dataCoins:Set(coins.Value)
end)
gems.Changed:Connect(function()
dataGems:Set(gems.Value)
end)
end)
Thanks in advance!

2 comments
Is "Enable Studio Access to Api Services" enabled?
And have you made a boolean value in ServerStorage called "SaveInStudio" and made it true?