Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with the tonumber?

I have the script below in a button, with a numvalue in the button also. The levels are explained below:

  1. Input (Button)
    1. Script /
    2. Value (Number Value)
script.Parent.Changed:connect(function()
	script.Parent.Value.Value = tonumber(script.Parent.Text)
end)

Anyone know why this doesn't work?

1 answer

If it doesn't work, then at some point 'script.Parent.Text' wasn't a number. I dont see any other reason for this not to work.

This discussion is preserved as it was. New answers, comments, and votes are closed.