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

How to past an variable in path?

Asked by 2 years ago

Example:

local Russia = Moscow
game.Workspace.Russia.Anchored = false

Studio says what it can't find that member.

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

Try this:

local Russia = "Moscow"
game.Workspace[Russia].Anchored = false
Ad

Answer this question