msg = /size 2
if msg == "/size "..tostring(NumberFromString) then
print(NumberFromString) -- 2
end
msg = /size 0.5
if msg == "/size "..tostring(NumberFromString) then
print(NumberFromString) -- nil
end
i need some help ive been searching but havent found anything
local msg = "/size 20" -- the original message
local content = string.split(msg, ' ') -- content in the message
local number = tonumber(content[2])
print(number) --> 20