So I'm trying to make a script that shows a gui once it detects that there is a new update. I'm trying to compare the update times although it keeps being the same. Here's the script. How could I fix this?
local Service = game:GetService("MarketplaceService"):GetProductInfo(494196891)
local Version = Service.Updated
local Version2
local Service2
while true do
wait(1)
print(1)
Service2 = game:GetService("MarketplaceService"):GetProductInfo(494196891)
Version2 = Service2.Updated
print(Version)
print(Version2)
if Version ~= Version2 then
local Players = game.Players:GetChildren()
for _,v in pairs(Players) do
v.PlayerGui.RestartPoll.Poll.Visible = true
end
end
end

1 comment
I think you put me on the right track. Thanks!