Answers for "how to convert a string to an int in roblox"

2

change string to number roblox

local str1 = "123"
local str2 = "Hello" 

print(tonumber(str1)) --will return 123
print(tonumber(str2)) --will return nil
Posted by: Guest on October-11-2020

Code answers related to "how to convert a string to an int in roblox"

Browse Popular Code Answers by Language