How do i set a TextBox's Text to an IntValue?
I've been trying for days but it doesn't work. Please may I have the script?
How do i set a TextBox's Text to an IntValue?
I've been trying for days but it doesn't work. Please may I have the script?
Use tostring(theintvalue), it will convert another value to a string
You'd use the tonumber() function of Lua. It converts a string (TextBox's text) into a number or int (IntValue value)
IntVale.Value = tonumber(TextBox.Text)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
to path to the intValue or the intValue's name?
that isn't needed to set a textbox's text to an IntValue. a simple TextBox.Text = IntValue.Value would suffice
@bizzarebazarr what ever its defined to. @kkfilms_1 Not true, if the typeof is a number and not a string it will not let you combind them as they aren't both strings