add gs
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
-- Place v1.0.2
|
||||
|
||||
local assetUrl, fileExtension, x, y, baseUrl, universeId = ...
|
||||
|
||||
local ThumbnailGenerator = game:GetService("ThumbnailGenerator")
|
||||
ThumbnailGenerator:AddProfilingCheckpoint("ThumbnailScriptStarted")
|
||||
|
||||
pcall(function() game:GetService("ContentProvider"):SetBaseUrl(baseUrl) end)
|
||||
if universeId ~= nil then
|
||||
pcall(function() game:SetUniverseId(universeId) end)
|
||||
end
|
||||
|
||||
game:GetService("UserInputService").MouseIconEnabled = false
|
||||
game:GetService("ScriptContext").ScriptsDisabled = true
|
||||
game:GetService("StarterGui").ShowDevelopmentGui = false
|
||||
|
||||
game:Load(assetUrl)
|
||||
|
||||
ThumbnailGenerator:AddProfilingCheckpoint("GameLoaded")
|
||||
|
||||
-- Do this after again loading the place file to ensure that these values aren't changed when the place file is loaded.
|
||||
game:GetService("ScriptContext").ScriptsDisabled = true
|
||||
game:GetService("StarterGui").ShowDevelopmentGui = false
|
||||
|
||||
local result, requestedUrls = ThumbnailGenerator:Click(fileExtension, x, y, --[[hideSky = ]] false)
|
||||
ThumbnailGenerator:AddProfilingCheckpoint("ThumbnailGenerated")
|
||||
|
||||
return result, requestedUrls
|
||||
Reference in New Issue
Block a user