Datastore broken

Don’t you need 2 values clicks and points?

Yes. It updates it, and still does not work with the core one.

They are in different scripts.

Are you using Datastore or Datastore 2?

Mhm… So that means you use a custom leaderboard. I have a question that where does it look for the vales?

		if leaderstats then
			for _,stat in ipairs(GameStats) do
				local statObject = leaderstats:FindFirstChild(stat.Name)
				if statObject and not statObject:IsA('StringValue') then
					if not teamScores[team][stat.Name] then
						teamScores[team][stat.Name] = 0
					end
					teamScores[team][stat.Name] = teamScores[team][stat.Name] + getScoreValue(statObject)
				end
			end
		end
	end

Can you provide me the full script?

It’s really, really, REALLY long.

Cant you just use the orginal Roblox leaderboard and see if it works then?

Sure. Give me a minutr. hhhhhh

Yeah, this must be a problem with my leaderboard
image
@james_mc98

Alright now try see if it works then?

Is this good or bad? I think bad along with the other 1393 errors

“Clicks is not a valid member”
What about it is so broken???

Did you try disabling the other script that inserts the points, and clicks values. And rename then in the script i sent to you

image

“Output” = good
“Warning” = not really good
“Error” = bad

Ok welp. I could re write the script

Try that if anything. None of MY scripts recognise it as a valid stat.
And I mean, NONE.