Why does it not understand these scripts

Why is it saying that it doesn’t know what these are?


I was Making a clicker game and the points won’t go up

2 Likes

capitlize player

1 Like

Didn’t change anything? It doesn’t know what it is

1 Like

Capitalize every “player” inside of the function and not the line that makes the function. The function is returning “Player” not “player”

1 Like

it still has orange

1 Like

I think its an error w line 6 itself btw u forgot to correct line 9

1 Like

The variable in parameters of thr function is defined “players” but the variables in the function are “player” and “Player”. You need to make sure the variables are the same

1 Like

”player” is not defined, replace ”players” with ”player” in the function definition

1 Like

I will say this: please make sure you’re properly reading what you’re writing in your code. Many issues I’ve seen you stem from the fact that you’re either mislabeling or mispelling variables in your code.

1 Like

Just change it from “player” to “players”. In both lines 6 and 9.

1 Like

Player is a type, not a variable.

rename your function parameter players to player, keep the rest of the code same, it should fix your issue.

2 Likes

I meant the player variable being referenced. Also I’m terrible with scripting vocabulary and get it mixed up anyway :confused:.