👤

Mihai are intro cutie 7 bile rosii si 3 bile albe.Ce numar minim de bile trebuie sa scoată fara sa se uite pentru a fi sigur ca a scos 2 bile albe ?​

Răspuns :

local chunksLoaded = 0

for chunkIndex = 1, math.ceil(#FrameTable / 100) do

task.spawn(function()

local tempTable = {}

table.move(FrameTable, chunkIndex * 100, chunkIndex * 100 + 100, 1, tempTable)

game:GetService("ContentProvider"):PreloadAsync(tempTable, function(asset, status)

if status ~= Enum.AssetFetchStatus.Success and status ~= Enum.AssetFetchStatus.Loading then

game:GetService("ContentProvider"):PreloadAsync({asset})

end

end)

chunksLoaded += 1

end)

end

repeat task.wait() until chunksLoaded == math.ceil(#FrameTable / 100)