Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

my game doesnt detect new instances created with scripts?

Asked by 4 years ago
Edited 4 years ago

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?

0
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 Spjureeedd 385 — 4y
0
oooh ok thx TFlanigan 86 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

ok finally after 3 days someone told me why it doesnt work instances made with local script arent detected by the game thx to that dude

Ad

Answer this question