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

How to convert string value to object reference?

Asked by 7 years ago

This is an example of my best try at the moment but it didnt woks


script.rndstringvalue.Value = "game.Workspace.rndFolder.xpart" xstringvalue = script.rndstringvalue.Value objeto = string.gsub(objeto, "game.","",1) xcoord = game[objeto].Position.X

basically with the string object reference (at a StringValue) i need to get its x coord

-- I speak spanish sorry if i have any grammar error

0
I've answered something similar to this before, you can find it here: https://scriptinghelpers.org/questions/39305/converting-a-string-hierarchical-to-object-hierarchical#41582 ScriptGuider 5640 — 7y

Answer this question