that number 1 is the print of numMatch that basically is the player mastery
local number = Gui.Background.FrameTitle.Text
local numMatch = number:match("%d+") -- to get number in the text. The text is Fuwa Mastery: 1 the 1 gonna upload when player get new level
print(numMatch) -- player mastery printed 1 but i can put 600 and pass of mastery required number but still getting error
if v.Name == "ck" then
if numMatch >= 325 then -- 325 is the mastery required to use but i can put too v.MasteryRequired but its says the same problem and this is the line that get error
print("Can use") -- to detect if the script work
end
end
end
local number = Gui.Background.FrameTitle.Text
local numMatch = string.gsub(number , "%D", "") -- to get number in the text. The text is Fuwa Mastery: 1 the 1 gonna upload when player get new level
print(numMatch) -- player mastery printed 1 but i can put 600 and pass of mastery required number but still getting error
if v.Name == "ck" then
if numMatch >= 325 then -- 325 is the mastery required to use but i can put too v.MasteryRequired but its says the same problem and this is the line that get error
print("Can use") -- to detect if the script work
end
end
end
Maybe using the match from string library might work:
local number = Gui.Background.FrameTitle.Text
local numMatch = string.match(number , "%d+") -- to get number in the text. The text is Fuwa Mastery: 1 the 1 gonna upload when player get new level
print(numMatch) -- player mastery printed 1 but i can put 600 and pass of mastery required number but still getting error
if v.Name == "ck" then
if numMatch >= 325 then -- 325 is the mastery required to use but i can put too v.MasteryRequired but its says the same problem and this is the line that get error
print("Can use") -- to detect if the script work
end
end
end