PlayerList Rodux error in output

Reproduction Steps
Every time I press Stop while testing my game in Studio, I get an error from the PlayerList core scripts. It has something to do with leaderstats, as the only leaderstat I have, “Wins”, is mentioned in the errors.

Reproduction files:
Make a new place, add a script to ServerScriptService, and paste this in:

local players = game:GetService("Players")

local function onPlayerAdded(player)
	local leaderstats = Instance.new("Folder")
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = player
	
	local winsValue = Instance.new("IntValue")
	winsValue.Name = "Wins"
	winsValue.Parent = leaderstats
end

players.PlayerAdded:Connect(onPlayerAdded)
for _, player in pairs(players:GetPlayers()) do
	onPlayerAdded(player)
end

Expected Behavior
The PlayerList Core scripts should not show any errors.

Actual Behavior
Every time I hit stop in Studio, this error appears.

Issue Area: Engine
Issue Type: Other
Impact: Low
Frequency: Constantly
Date First Experienced: 2021-06-14 00:06:00 (-05:00)
Date Last Experienced: 2021-06-15 00:06:00 (-05:00)

6 Likes

I am having this issue too. It started this morning. I thought it was my scripts but I couldn’t fix the error. Slight annoyance.

3 Likes

Multiple developers having the same issue, started about 1 1/2 hours ago, error comes up after you leave a studio test. It seems to flood the output, making debugging a bit harder. (Only occurs with leaderstats)

2 Likes

I’ve just started to have this issue. Definitely a good idea to fix.

I had this issue in my game and also a developer I know have this problem. Mine happened when I end the play test.

1 Like

Sorry about that, this should be fixed now. This was caused by a performance fix for the PlayerList that was turned on yesterday.

6 Likes

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