I am trying to get a value with a string variable ValueType, and a table variable storing all of the values that will make up an unknown value.
Say ValueType is "Vector3" and newtable is 1, 2, and 3. My goal is to get the value Vector3.new(1, 2, 3). Right now I have a nil value from this line below. How do I fix this?
local finalinput = ValueType["new"](newtable)
Thanks!

2 comments
I think I understand what you're asking, but am still a little confused. Can you explain what you are trying to do with this?
I am trying to make it so you can change properties of an object in a plugin I am making. Working on the value part.