How to convert a string into an integer

I want to make a model loading system for a small project I’m working on.

I’m stuck on how to make a string into an integer,

All documentation I see just is confusing. (I cant read other peoples code lol, most can relate)

1 Like

You can use the tonumber() function documented on this page with simple instructions on how to use it below.

2 Likes
tonumber(your_string)

It will convert it if it’s a valid number.