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

Place updated detection?

Asked by 10 years ago

I saw it in The Quarry, where if the place is updated, it teleports everyone to a different place.

I'm not sure if this is a universe or something, or if it literally can detect if the place is updated.

If anyone knows how this works, can I get a wiki link?

1 answer

Log in to vote
3
Answered by 10 years ago

I've done something like this before. Take a look at my script.

01local placeid = game.PlaceId
02local start = game.MarketplaceService:GetProductInfo(placeid)
03local startup = start['Updated']
04local isShuttingDown = false
05 
06function shutdown()
07    isShuttingDown = true
08    for i,v in next, game.Players:GetPlayers() do
09        v:Kick()
10    end
11end
12 
13while wait(1) do
14    if not isShuttingDown then
15        local newinfo = game.MarketplaceService:GetProductInfo(placeid)
View all 31 lines...

Just be careful with this one. It depends on the updated time, and that time updates when you update the description.

Ad

Answer this question