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

How come tonumber wont work on this?

Asked by
Dr_Doge 100
8 years ago

I think Im using it wrong. Im trying to get LUA to measure the amount of letters the Text has. Is there any easy way to do that?

WaitTime=tonumber(script.Parent.Text)+2
wait(WaitTime)

Error:Players.Player.PlayerGui.TextMessage.Text.Script:3: attempt to perform arithmetic on a nil value

Answer this question