Problem to find a StringValue

Hello Everyone, i got a problem and i dont know how to fix it.
On the line 3 from my script, it try to find the “TimeLeft”
If i change the line 3 to

local seconds = plr.TimeLeft

it give me this error
image

and if i change the line 3 to

local seconds = plr:WaitForChild("TimeLeft")

It give me this “Error” and dont works.

image
can someone help?
(Its a local script located on StarterPlayer > StarterPlayerScripts)
(The “TimeLeft” is a StringValue inside every player.)

1 Like

This means that you’re incorrect about there being “TimeLeft” in every player

Make sure to double check if there is a TimeLeft StringValue in the player, and that you defined the plr variable correctly

Yes there a “TimeLeft” on every player, i checked it.

TimeLeft most likely isn’t being properly cloned and parented to each player instance. You’ll want to check if it exist during run-time through the explorer.

Also, with the release of Attributes you should use attributes instead, as they are more efficient and faster than ValueInstances.

image

image

Bruh

1 Like

You wrote TimeLeft instead of TimerLeft

1 Like

This is a typo. You are defining it as TimeLeft when it should be TimerLeft.

1 Like

Oh guys, sorry for made this mistake
really so so sorry. :frowning:

1 Like

It’s okay! Sometimes you need a fresh pair of eyes to find your issue, although I really recommend looking at your code very very carefully as to avoid making posts about really simple issues