I’m trying to reference a part in a script but, instead of referencing it by typing in its name normally, I need to use a string value. Here is an example of what I mean:
local stringval = Instance.new("StringValue")
stringval.Value = "Part"
local part = game.Workspace.stringval.Value
Since I have the name of the object stored in a string value, and cannot manually change it in the script, how would I do this?