I am making a ingame item notifier and I am wondering if this is the right http code?
01 | Http = game:GetService "HttpService" |
02 | while wait( 1 ) do |
03 | DataTaken = Http:GetAsync( "http://roproxy.tk/catalog/json?Subcategory=17&SortType=3&IncludeNotForSale=true&ResultsPerPage=3" ) |
04 | Data = Http:JSONDecode(DataTaken) |
05 | for Num in pairs (Data) do |
06 | if script.Parent.Frame [ Num ] .AssetId.Value ~ = Data [ Num ] [ "AssetId" ] then |
07 | script.Parent.Frame [ Num ] .AssetId.Value = Data [ Num ] [ "AssetId" ] |
08 | if script.Parent.Frame.Visible = = false then |
09 | script.Parent.OpenNClose.TextButton.Text = "!" |
10 | script.Parent.OpenNClose.BackgroundColor 3 = Color 3. new( 255 , 0 , 0 ) |
11 | end |
12 | end |
13 | end |
14 | end |
Please answer (I KNOW THIS ISNT THE ONLY SCRIPT JUST THE MAIN)
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.