local DSS = game:GetService("DataStoreService")
local Money = DSS:GetDataStore("Money")
game.Players.PlayerAdded:Connect(function(plr)
local pMoney = Money:GetAsync(plr.UserId)or 0
local leaderstats = Instance.new("Folder",plr)
leaderstats.Name = "leaderstats"
local MoneyValue = Instance.new("NumberValue")
MoneyValue.Name "Money"
MoneyValue.Value = pMoney
MoneyValue.Parent = leaderstats
MoneyValue.Changed:connect(function(v)
Money.setAsync(plr.UserId,v)
print("Money Saved")
end)
end)
This script is also continuous 12: 00: 34.886 - ServerScriptService.Script: 16: unexpected symbol near 'de' I'm getting error help me plsss

3 comments
Use Lua brackets around your code
Formatted code.
You should accept DinozCreates's answer! Oh I see you can't but please at least comment to his answer