Why does this have a error

Why does this have a error, i dont see anything wrong with it

try

function Manager.AdjustClicks(player,amount: number)

player is not defined, it’s nil
try changing the players argument to player
and at line 6 change that to Manager.Profiles[player.UserID]

Oh sorry. wrong image!
I meant this

Why does the leaders stats have a error

try , to replace line 5 , WITH THIS LINE

function Manager.AdjustClicks(player,amount: number)

and tell me if it works or not

the type checker can’t find it

if you defined the key, leaderstats elsewhere then you can ignore it
you might wanna check if the leaderstats key exists too before continuing

Also you can view errors by hovering over the underline, then send a screenshot of the error or text

image