Im making a obby with a checkpoint save system and im getting a nill error

i dont understand how to fix this any help to be pointed in the right direction will help me out thank you in advanced either its for the leaderstats or the saving when someone moves to the checkpoint

It’s a typo. You defined it as Player earlier, but you’re reading it as player in the next line.

ah ok i see it now so if you define is as Players you have to do the same to the next line instead of having it lowercase correct?

image
you just need replace the lower p to a upper p on the line 23

1 Like

so for example if you were to use capital L for local instead of the lower case like why do we start off stuff with lowercase letters then use capital for parent?

keywords are reserved and thats why theyre capital sometimes, majority of things are case sensitive in code because of this or even just in general when referring to instances or groups and names of lets say ReplicatedStorage for example

that makes more sense so thats where the define of player vs players is the like the the script is trying to figure out if its one player,one object compare to many correct