When im creating 2 leaderstats only one of them works

this is my first post on the devforum but anyway im trying to make 2 scripts that make leaderstats for Wins and for Time, i already had the time leaderstat working but when i add the Wins leaderstat The time leaderstat goes away and only the win leader stat works so in conclusion i cant get both of the leaderstats to work at the same time

wins

time

check if you’re not creating 2 leaderstats folders

Why do you need two leaderstats folders? Why can’t you combine them into one (as shown below)?

game.Players.PlayerAdded:Connect(function(Player)
	local leaderstats = Instance.new("Folder")
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = Player
	
	local Wins = Instance.new("IntValue") -- create a win value
	Wins.Value = 0
	Wins.Name = "Wins"
	Wins.Parent = leaderstats
	
	local Time = Instance.new("IntValue") -- create a time value
	Time.Value = 0
	Time.Name = "Time"
	Time.Parent = leaderstats
end)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.