local Button = script.Parent
Button.ClickDetector.MouseClick:Connect(function(player)
local TimesClicked = 0
if TimesClicked >= 250 then
player.leaderstats.level.Value = player.leaderstats.level.Value + 1
end
TimesClicked = TimesClicked + 1
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1
end)
i'm very new to scripting and i made this script for a point and click game but the level system doesn't work