Okay, so I have written some code, and when I update the plugin, a gui shows up (if the plugin is opened) and tells the player to update the plugin via the Plugin Manager. However, it started working at first, and then it just stopped. Can you tell me what's wrong? Did I code this right?
If there are any sources I can look at, I'd appreciate if you give me the links.
Thanks...
Code:
local AssetId = 142776964
----
local Info = game:GetService("MarketplaceService"):GetProductInfo(AssetId)
while true do
wait()
local NewInfo = game:GetService("MarketplaceService"):GetProductInfo(AssetId)
if NewInfo["Updated"] ~= Info["Updated"] then
if NewInfo["Description"] == Info["Description"] and NewInfo["Name"] == Info["Name"] or NewInfo["AssetId"] ~= game.PlaceId then
script.Parent.Main.Update.Visible = true
script.Parent.Main.Tabs.InfoButton.Visible = false
script.Parent.Main.InfoPage.Visible = false
else
Info = NewInfo
end
end
end

2 comments
Dude, that's sending out a web request like 30 times a second. You should make it wait at least 5 seconds at minimum.
Is that the issue? Is that why it's not working...?