I have a problem with leaderstats value of clicks.
local Players = game:GetService("Players")
local clickDetector = script.Parent
clickDetector.MouseClick:Connect(function(plr)
local leaderstats = plr.leaderstats
local clicks = leaderstats.Clicks
print("your click value is "..clicks.Value)
end)
For example, if i have 10 clicks, it keep show 0 clicks in console. How do i need to fix that?

2 comments
what script is this code in server or local?
server