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 10 years ago

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

01Http = game:GetService"HttpService"
02while wait(1) do
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.BackgroundColor3 = Color3.new(255,0,0)
11        end
12        end
13    end
14end

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
10 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