#Why doesn't this script work?

5 messages · Page 1 of 1 (latest)

raw depot
#

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

proven atlas
#

so it basically refreshes

proven atlas
raw depot
#

thx