Creating something that requires the host to put a number value in a TextBox and then once ready, launch the action which changes the DeathLimit depending on what the host put into the TextBox.
My question is, can the Text inside the TextBox replace the value of an IntValue even if the Text is a number?
You can transform a string into a number using the tonumber
function.
myIntValue.Value = tonumber(textNumber)
Note that tonumber()
will return nil if it couldn't successfully transform your string into a number.