Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with the tonumber?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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.

Ad

Answer this question