I have a StringValue called “CharacterChosen” inside of StarterPlayerScripts that I want to access. The thing is, the script doesn’t seem to recognize PlayerScripts when I start the game. The script to locate it runs every time I click a button.
Here is the script I used to locate it:
game.Players[player.Name].PlayerScripts.CharacterChosen.Value
And here is the outcome:
This confused me because PlayerScripts is clearly a member of my local player

What can I do to fix this?
1 Like
Is this running from and Script or a Local script?
It’s running from a script, but I made it define the local player from a script and it’s able to tell the local player.
To check if it’s a member of your player to the server, run the game and switch the the server view and check the members of the player, since it is a server script returning the error 
3 Likes
Oh yeah.

Thanks. I’ll see what I can do with that.
When I want to access a value, I always put it in Starter Gui, try that 
Yeah, it can locate that but the value resets when the player resets. That’s the reason why I put it in StarterPlayerScripts so it won’t reset.
I also used a tactic where the value is originally in StarterCharacterScripts, but a local script immediately moves it so its parent is the actual player, and that’s accessible by the server, I believe 
Nope, It’s not accessible by the server
Ok I don’t know what to do, maybe try having something in replicated storage that has all the values for the player…
1 Like
Why putting them there in the first place? Just create the value by code when the player joins and parent it to the player itself not to the PlayerScripts. That way both the client and the server can access the value.