Hey, so i was trying to get a players limited value, which i could then transfer into values of other plays using a join event.
However, it always returns NIL when trying to use %d+ to match the number (it has a comma in it when its extra numbers like 1,567)
The Code i'm using is:
local HTTP = game:GetService("HttpService") local Link = HTTP:GetAsync("https://www.rolimons.com/player/1689463945") local GetValue = Link:match'id="player_value">(. %d+)' -- yes i removed the . from inside before print(GetValue)
If you want to see the HTML yourself: https://imgur.com/78rKxeZ
Any help with this would be appreciated!
%d+
doesn't match commas, and the code has a dot+space pattern that doesn't match the HTML. The correct way would be like so:
local GetValue = Link:match'id="player_value">([0-9,]+)<' -- Match digits and the comma GetValue = GetValue:gsub(",", "") -- Remove commas from it