So basically, I am making a coordinated based missile system, in which a player can enter coordinates into a textbox [GUI NOT A SURFACEGUI] and it will launch. The problem is, I have no idea how to make the textbox automatically convert into vector3 values.
The simplest solution would be to just have 3 separate textboxes for each component, but if you really want to convert a string into a Vector3:
local function stringToVector3(vector : string)
vector:gsub(" ", "")
local x, y, z = table.unpack(string.split(vector, ","))
return Vector3.new(x, y, z)
end