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

How to get my fourth argument aka the value in the message?

Asked by 5 years ago
Edited 5 years ago
local Msg = "gadd/me/level/100"

local M1 = Msg:sub(6):find("/") + 5

local plrz = Msg:sub(6, M1 - 1)

local stat = Msg:sub(M1 + 1)

local value = ??



print("\nlength = " .. M1 .. "\nplr = " .. plrz .. "\nstat = " .. stat .. "\nvalue = " .. value)

Answer this question