--[[So we all know that tonumber() is a function that takes a string number and turns it into a number, but for my game, it is critical for me to use the same thing, but with text. For instance, this code is an example of what I'm talking about.]]--
local textString = "HelloIAmLuaNerd!" --Name of a set-later variable with quotation marks (below)
local HelloIAmLuaNerd = game.Workspace.Value.Value --Setting a variable without the quotation marks
local toNumberText = tonumber(textString) --[[Trying to make the string variable "textString" into the variable "HelloIAmLuaNerd", by removing the quotation marks]]--
toNumberText = 15 --Changing the value with the toNumberText (defined above)
--[[So this is what I am trying to get to work, but it is not working so well, which is why I am here! I really hope you guys can help, as this will be very important, knowing that scoping and variables don't always work as they should in functions. Bye!]]--
local textString = "HelloIAmLuaNerd!" --Name of a set-later variable with quotation marks (below)
local HelloIAmLuaNerd = game.Workspace.Value.Value --Setting a variable without the quotation marks
local toNumberText = tonumber(textString) --[[Trying to make the string variable "textString" into the variable "HelloIAmLuaNerd", by removing the quotation marks]]--
toNumberText = 15 --Changing the value with the toNumberText (defined above)
--[[So this is what I am trying to get to work, but it is not working so well, which is why I am here! I really hope you guys can help, as this will be very important, knowing that scoping and variables don't always work as they should in functions. Bye!]]--