My code:
function onEnter(player)
local ld = Instance.new("IntValue")
ld.Parent = player
ld.Name = "leaderstats"
local value1 = Instance.new("IntValue")
value1.Parent = ld
value1.Name = "Points"
value1.Value = game.DataStoreService:Get
end
game.Players.PlayerAdded:connect(onEnter)
for i,v in pairs(game.Players:GetChildren()) do -- So that it works in Play Solo.
onEnter(v)
end
Writing a currency system. Really don't want to make a gui just for "points" but will if need be.
If anyone knows why it won't work, I'd love to know.
Ran in Studio.

1 comment
What the freak is "game.DataStoreService:Get" ?