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

I am wondering if this is the right code for a ingame notifier?

Asked by 9 years ago

I am making a ingame item notifier and I am wondering if this is the right http code?

Http = game:GetService"HttpService"
while wait(1) do
    DataTaken = Http:GetAsync("http://roproxy.tk/catalog/json?Subcategory=17&SortType=3&IncludeNotForSale=true&ResultsPerPage=3")
    Data = Http:JSONDecode(DataTaken)
    for Num in pairs(Data) do
        if script.Parent.Frame[Num].AssetId.Value ~= Data[Num]["AssetId"] then
        script.Parent.Frame[Num].AssetId.Value = Data[Num]["AssetId"]
        if script.Parent.Frame.Visible == false then
        script.Parent.OpenNClose.TextButton.Text = "!"
        script.Parent.OpenNClose.BackgroundColor3 = Color3.new(255,0,0)
        end
        end
    end
end


Please answer (I KNOW THIS ISNT THE ONLY SCRIPT JUST THE MAIN)

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

I don't see why you couldn't have checked this.. but yes, I presume it's the correct URL.

The page showed a long table full of a lot of different things.

Ad

Answer this question