Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

my game doesnt detect new instances created with scripts?

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

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

0

oooh ok thx

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.