Is not a valid member of Folder

I’ve been trying to figure this out, but I can’t seem to make it work. Could anyone help?
Ill provide screenshots bellow.

Error1
Error2

Thanks!

The error message suggests you made a typo and misspelled “Strength”. The line you claim throws the error is probably not the one.

image

In this piece of code there is no “Strenght” typo:

image

A little off topic, but instead of doing

leaderstats.Strength.Value = leaderstats.Strength.Value + 1

you could just do

leaderstats.Strength.Value += 1 -- Adds one to the current value