19 lines
748 B
Lua
19 lines
748 B
Lua
local assetUrl, fileExtension, x, y, baseUrl, rigUrl = ...
|
|
|
|
pcall(function() game:GetService("ContentProvider"):SetBaseUrl(baseUrl) end)
|
|
game:GetService("ContentProvider"):SetThreadPool(16)
|
|
game:GetService("ScriptContext").ScriptsDisabled = true
|
|
settings()["Task Scheduler"].ThreadPoolConfig = Enum.ThreadPoolConfig.PerCore4;
|
|
|
|
local Lighting = game:GetService("Lighting")
|
|
Lighting.ClockTime = 13
|
|
Lighting.GeographicLatitude = -5
|
|
|
|
local mannequin = game:GetObjects(rigUrl)[1]
|
|
mannequin.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
|
|
mannequin.Parent = workspace
|
|
|
|
local pants = game:GetObjects(assetUrl)[1]
|
|
pants.Parent = mannequin
|
|
|
|
return game:GetService("ThumbnailGenerator"):Click(fileExtension, x, y, --[[hideSky = ]] true) |