Converting string to number

When I try to set a variable as the players last custom input it sets the number to undefined even if it’s a real number

Can you show the script or game in which this function doesn’t work?

show the script
aaaaaaaaaaaa