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

Why is this HTTP service script not working?

Asked by 8 years ago

This HTTP service script is not working and won't return the Rate.

function getRate(Currency)
    local Site  = "https://roproxy.tk/My/Money.aspx#/#TradeCurrency_tab"
    local Service = game:GetService("HttpService")
    local html = Service:GetAsync(link, false)
    local string = [[<div class="form-label padding-top">Spread: </div><div>%d+</div>]]
    local Number = html:match(string)
    local Rate = (Number:match("%d+"))

    return ("The current Rate is  " .. Rate .. "")
end

Answer this question