I'm creating a Plugin for roblox studio that writes a simple script and puts it in ServerScriptStorage. However, I'm having trouble getting it to work the way I want it too. This is what I have so far...
Script.Source = [====[ local ["game.Workspce.Part.Name"] = game.Workspace.Part
print("Done")
]====]
and when I use the plugin the output in ServerScriptStorage is this...
local ["game.Workspace.Part.Name"] = game.Workspace.Part
print("Done")
but I want ["game.Workspace.Part.Name"] to be the acually name of the part like this...
local PartName = game.Workspace.Part
print("Done")
Is there a way I can make ["game.Workspace.Part.Name"] not be read as a string?

2 comments
Thanks a ton, very helpful!
Hmm, actually this doesn't do exactly what I want to do, but I still learned something :)