i made a script
local function onPlayerJoin(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = leaderstats
leaderstats.Parent = player
local credits = Instance.new ("IntValue")
credits.name = "Credit(s)"
credits.Value = "50"
credits.Parent = leaderstats
end
game.Players.PlayerAdded:Connect(onPlayerJoin)
and the output says " 16:51:50.409 - ServerScriptService.Script:3: bad argument #3 to 'Name' (string expected, got Object)" its a leadrboardscript

2 comments
the only problem was the quotes
actually nvm this is better and shorter