local currecyName = "Money" local DataStore = game:GetService("DataStoreService"):GetDataStore("TestDataStore")
game.Players.PlayerAdded:Connect (function(player)
local folder = Instance.new("Folder") folder.Name = "leaderstats" local currency = Instance.new("IntValue") currency.Name = currecyName currency.Parent = folder
end)
This question was kinda confusing but I have tried my best (the equal signs are registering). You forgot to parent the folder to the player.
local currecyName = "Money" local DataStore = game:GetService("DataStoreService"):GetDataStore("TestDataStore") game.Players.PlayerAdded:Connect (function(player) local folder = Instance.new("Folder") folder.Name = "leaderstats" folder.Parent = player -- This right here you forgot local currency = Instance.new("IntValue") currency.Name = currecyName currency.Parent = folder end)
if this seemed to work an upvote would be appreciated