How to make my counter be the same as my leaderstat?

So, i got a counter and a leaderstat. And when you join the game after playing, it saves on the leaderstat, but not the counter, Can you help me?

is the counter a gui? if so add a local script that sets the text to the leaderstat and changes it whenever the leaderstat changes

1 Like

I’m sorry, but can you do the script, i’m bad at scripting lol. It’s fine if you don’t want too.

put this in a localscript inside of the textlabel gui

local Player = game:GetService("Players").LocalPlayer

local clicks = Player:WaitForChild("leaderstats").Clicks

script.Parent.Text = clicks.Value

clicks.Changed:Connect(function()
  script.Parent.Text = clicks.Value
end)
2 Likes