so my game doesnt detect new instances created with scripts. for example:
local value = Instance.new("StringValue",game.Workspace)
value.Name = "PlayerName"
value.Value = game.Players.LocalPlayers.Name
and then we have something like this:
local PlrName = game.Workspace.PlrName
and error i get: 22:27:01.330 - PlrName is not a valid member of Workspace
but i can clearly see that PlrName is in Workspace is there any way to fix it?

2 comments
As you're using "LocalPlayers" (it should be "LocalPlayer" by the way) it means you're using a LocalScript. If you create something with a LocalScript, the Server won't be able to see it
oooh ok thx